xingzai 11 сар өмнө
parent
commit
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