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

+ 3 - 1
controllers/activity.go

@@ -397,7 +397,9 @@ func (this *ActivityCoAntroller) SignupAdd() {
 	resp := new(models.SignupStatus)
 	resp.SignupType = signupType
 	resp.SignupStatus = signupStatus
-	resp.ActivityId = activityId
+	if signupStatus == "Success" {
+		resp.ActivityId = activityId
+	}
 	if activityId%2 == 1 {
 		resp.GoFollow = true
 	}