Browse Source

no message

xingzai 3 years ago
parent
commit
dedf5c23af
1 changed files with 20 additions and 0 deletions
  1. 20 0
      controllers/activity.go

+ 20 - 0
controllers/activity.go

@@ -556,6 +556,26 @@ func (this *ActivityCoAntroller) SignupAdd() {
 							return
 						}
 						resp.HaqveJurisdiction = true
+						resp.SignupType = signupType
+						resp.SignupStatus = signupStatus
+						resp.HasPermission = hasPermission
+						if signupStatus == "Success" {
+							resp.ActivityId = activityId
+						}
+						total, err = models.GetUserMeetingReminderCount(user.UserId)
+						if err != nil {
+							br.Msg = "获取信息失败"
+							br.ErrMsg = "获取日程数量信息失败,Err:" + err.Error()
+							return
+						}
+						if total == 0 {
+							resp.GoFollow = true
+						}
+						br.Ret = 200
+						br.Success = true
+						br.Msg = "操作成功"
+						br.Data = resp
+						return
 					}
 
 					totalMy, err := models.GetActivitySignupByUserCount(uid, activityId)