xingzai %!s(int64=3) %!d(string=hai) anos
pai
achega
d94df92abf
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      controllers/activity.go

+ 7 - 1
controllers/activity.go

@@ -487,7 +487,13 @@ func (this *ActivityCoAntroller) SignupAdd() {
 						signupStatus = "FullStarffed"
 						item.FailType = 1
 					}
-					if signupStatus != "Success" {
+					total, err = models.GetActivitySignupCount(uid, activityId)
+					if err != nil {
+						br.Msg = "获取失败"
+						br.ErrMsg = "获取失败,Err:" + err.Error()
+						return
+					}
+					if signupStatus != "Success" && total == 0 {
 						item.UserId = uid
 						item.ActivityId = activityId
 						item.CreateTime = time.Now()