Browse Source

Merge branch 'cygx_13.2' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 1 year ago
parent
commit
c70bb4e5c1
1 changed files with 3 additions and 2 deletions
  1. 3 2
      services/activity.go

+ 3 - 2
services/activity.go

@@ -582,11 +582,12 @@ func GetActivityDetailUserPower(user *models.WxUserItem, activityInfo *models.Ac
 		permissionStr += "," + utils.CHART_PERMISSION_NAME_MF_YANXUAN
 	}
 
-	//如果用户开通了研选扣点包,但是没开通研选订阅,那么就拼接一个研选订阅的权限名称
-	if strings.Contains(permissionStr, utils.YAN_XUAN_KOU_DIAN_BAO_NAME) {
+	//如果正式权限有开通 研选扣点包 ,那么就拼接一个 研选订阅的权限
+	if strings.Contains(permissionStrZhengShi, utils.YAN_XUAN_KOU_DIAN_BAO_NAME) {
 		permissionStr += "," + utils.CHART_PERMISSION_NAME_MF_YANXUAN
 		permissionStrZhengShi += "," + utils.CHART_PERMISSION_NAME_MF_YANXUAN
 	}
+
 	//如果一个权限都没有就返回无权限
 	if permissionStr == "" {
 		return