瀏覽代碼

no message

xingzai 3 年之前
父節點
當前提交
fcfdba455c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      controllers/activity.go

+ 2 - 1
controllers/activity.go

@@ -359,10 +359,11 @@ func (this *ActivityCoAntroller) Detail() {
 			}
 		}
 	}
-	if !strings.Contains(activityInfo.CustomerTypeIds, strconv.Itoa(userType)) {
+	if !strings.Contains(activityInfo.CustomerTypeIds, strconv.Itoa(userType)) && activityInfo.LimitPeopleNum > 0 {
 		br.Msg = "您暂无权限查看该活动"
 		return
 	}
+	fmt.Println(userType)
 	detail, errDetail := models.GetActivityTypeDetailById(activityInfo.ActivityTypeId)
 	if errDetail != nil {
 		br.Msg = "获取信息失败"