xingzai 3 éve
szülő
commit
d85d75e715
1 módosított fájl, 3 hozzáadás és 1 törlés
  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
 	}