|
@@ -177,7 +177,12 @@ func GetUserHasPermissionActivity(user *models.WxUserItem, activityInfo *models.
|
|
|
}
|
|
|
}
|
|
|
hasPermission = hasPermission
|
|
|
- popupMsg = "您暂无权限参加此活动,若想参加可以申请开通对应的试用权限"
|
|
|
+ if strings.Contains(activityInfo.ChartPermissionName, utils.CHART_PERMISSION_NAME_YANXUAN) {
|
|
|
+ popupMsg = "暂无<b>买方研选</b>权限<br/>您可申请开通试用"
|
|
|
+ } else {
|
|
|
+ popupMsg = "您暂无权限参加此活动,若想参加可以申请开通对应的试用权限"
|
|
|
+ }
|
|
|
+
|
|
|
return
|
|
|
} else {
|
|
|
return
|
|
@@ -192,11 +197,15 @@ func GetUserHasPermissionActivity(user *models.WxUserItem, activityInfo *models.
|
|
|
err = errors.New("GetCompanyPermission, Err: " + e.Error())
|
|
|
return
|
|
|
}
|
|
|
- if companyPermission == "专家" {
|
|
|
- popupMsg = "您暂无权限参加【" + activityInfo.ActivityTypeName + "】类型活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
-
|
|
|
+ if strings.Contains(activityInfo.ChartPermissionName, utils.CHART_PERMISSION_NAME_YANXUAN) {
|
|
|
+ popupMsg = "暂无<b>买方研选</b>权限<br/>点击提交申请,提醒对口销售为你开通试用"
|
|
|
} else {
|
|
|
- popupMsg = "您暂无权限参加【" + activityInfo.ChartPermissionName + "】行业活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
+ if companyPermission == "专家" {
|
|
|
+ popupMsg = "您暂无权限参加【" + activityInfo.ActivityTypeName + "】类型活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
+
|
|
|
+ } else {
|
|
|
+ popupMsg = "您暂无权限参加【" + activityInfo.ChartPermissionName + "】行业活动,若想参加请联系对口销售--" + companyItem.SellerName + ":" + companyItem.Mobile
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
hasPermission = 5
|