xingzai 3 gadi atpakaļ
vecāks
revīzija
d85d75e715
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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
 	}