xingzai 1 жил өмнө
parent
commit
a461c086df

+ 5 - 5
controllers/activity.go

@@ -2106,6 +2106,8 @@ func (this *ActivityCoAntroller) CheckAsk() {
 		hasPermission = 1
 		signupStatus = "Success"
 		resp.HaqveJurisdiction = true
+		resp.HasPermission = hasPermission
+		resp.SignupStatus = signupStatus
 	} else {
 		hasPermission, sellerName, sellerMobile, popupMsg, err := services.GetUserHasPermissionActivity(user, activityInfo)
 		if err != nil {
@@ -2118,8 +2120,6 @@ func (this *ActivityCoAntroller) CheckAsk() {
 		resp.SellerName = sellerName
 		resp.SellerMobile = sellerMobile
 	}
-	resp.HasPermission = hasPermission
-	resp.SignupStatus = signupStatus
 	resp.ActivityId = activityId
 	br.Ret = 200
 	br.Success = true
@@ -3331,7 +3331,8 @@ func (this *ActivityCoAntroller) ActivityAppointmentAdd() {
 		resp.HaqveJurisdiction = true
 		//1:预约外呼 、2:设置会议提醒 、 3:预约纪要 、4:活动报名
 		go services.ActivityUserRemind(user, activityInfo, 3)
-
+		resp.HasPermission = hasPermission
+		resp.SignupStatus = signupStatus
 	} else {
 		hasPermission, sellerName, sellerMobile, popupMsg, err := services.GetUserHasPermissionActivity(user, activityInfo)
 		if err != nil {
@@ -3344,8 +3345,7 @@ func (this *ActivityCoAntroller) ActivityAppointmentAdd() {
 		resp.SellerName = sellerName
 		resp.SellerMobile = sellerMobile
 	}
-	resp.HasPermission = hasPermission
-	resp.SignupStatus = signupStatus
+
 	resp.ActivityId = activityId
 	var total int
 	total, err = models.GetUserCygxActivityAppointmentCountByUid(user.UserId)