|
@@ -72,6 +72,12 @@ func GetUserHasPermission(user *models.WxUserItem) (hasPermission int, sellerNam
|
|
hasPermission = 2
|
|
hasPermission = 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ hasPermission, e = GetUserPermissionCode(user.UserId, user.CompanyId)
|
|
|
|
+ if e != nil {
|
|
|
|
+ err = errors.New("GetUserDetailPermissionCode, Err: " + e.Error())
|
|
|
|
+ return
|
|
|
|
+ }
|
|
popupMsg = "需要升级行业套餐权限才可参与此活动,请联系对口销售"
|
|
popupMsg = "需要升级行业套餐权限才可参与此活动,请联系对口销售"
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -117,6 +123,12 @@ func GetUserHasPermissionArticle(user *models.WxUserItem) (hasPermission int, se
|
|
hasPermission = 2
|
|
hasPermission = 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ hasPermission, e = GetUserPermissionCode(user.UserId, user.CompanyId)
|
|
|
|
+ if e != nil {
|
|
|
|
+ err = errors.New("GetUserDetailPermissionCode, Err: " + e.Error())
|
|
|
|
+ return
|
|
|
|
+ }
|
|
popupMsg = "需要升级行业套餐权限才可查看此报告,请联系对口销售"
|
|
popupMsg = "需要升级行业套餐权限才可查看此报告,请联系对口销售"
|
|
return
|
|
return
|
|
}
|
|
}
|