瀏覽代碼

no message

xingzai 11 月之前
父節點
當前提交
93c97cb135
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      services/activity.go

+ 1 - 0
services/activity.go

@@ -532,6 +532,7 @@ func CheckUserPowerByActivityChoose(user *models.WxUserItem, activityInfo *model
 
 // 根据用户身份处理活动可见
 func ActivityConditioninitSql(user *models.WxUserItem, condition string, isPower int) (conditionActivity string, err error) {
+	condition += "  AND  IF ( art.is_limit_people  = 1 ,  art.customer_type_ids != '' ,1=1  )  "
 	//未登录的用户也可以查看所有活动v12.2.1
 	if user.UserId == 0 {
 		conditionActivity = ` AND art.publish_status = 1   AND art.yidong_activity_id = ''  ` + condition