|
@@ -1275,7 +1275,6 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- item := new(models.CygxActivitySignup)
|
|
|
|
if user.CompanyId > 1 {
|
|
if user.CompanyId > 1 {
|
|
companyItem, err := models.GetCompanyDetailById(user.CompanyId)
|
|
companyItem, err := models.GetCompanyDetailById(user.CompanyId)
|
|
//冻结客户
|
|
//冻结客户
|
|
@@ -1314,6 +1313,8 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if havePower {
|
|
if havePower {
|
|
|
|
+
|
|
|
|
+ item := new(models.CygxActivitySignup)
|
|
hasPermission = 1
|
|
hasPermission = 1
|
|
signupStatus = "Success"
|
|
signupStatus = "Success"
|
|
resultTime := utils.StrTimeToTime(activityInfo.ActivityTime) //时间字符串格式转时间格式
|
|
resultTime := utils.StrTimeToTime(activityInfo.ActivityTime) //时间字符串格式转时间格式
|
|
@@ -1351,7 +1352,6 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
signupStatus = "BreakPromise"
|
|
signupStatus = "BreakPromise"
|
|
resp.PopupMsg = "由于爽约次数过多,您暂时被限制报名资格,请联系对口销售"
|
|
resp.PopupMsg = "由于爽约次数过多,您暂时被限制报名资格,请联系对口销售"
|
|
item.FailType = 3
|
|
item.FailType = 3
|
|
- return
|
|
|
|
}
|
|
}
|
|
totalSignupCompany, err := models.GetActivitySignupCompanyCount(activityId, user.CompanyId)
|
|
totalSignupCompany, err := models.GetActivitySignupCompanyCount(activityId, user.CompanyId)
|
|
if err != nil {
|
|
if err != nil {
|
|
@@ -1363,7 +1363,6 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
signupStatus = "TwoPeople"
|
|
signupStatus = "TwoPeople"
|
|
resp.PopupMsg = "单机构最多2人报名同一活动,您所在机构报名人数已满"
|
|
resp.PopupMsg = "单机构最多2人报名同一活动,您所在机构报名人数已满"
|
|
item.FailType = 2
|
|
item.FailType = 2
|
|
- return
|
|
|
|
}
|
|
}
|
|
totaSignupPeopleNum, err := models.GetActivitySignupSuccessCount(activityId)
|
|
totaSignupPeopleNum, err := models.GetActivitySignupSuccessCount(activityId)
|
|
if err != nil {
|
|
if err != nil {
|
|
@@ -1375,7 +1374,6 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
signupStatus = "FullStarffed"
|
|
signupStatus = "FullStarffed"
|
|
resp.PopupMsg = "此活动报名人数已满,请留意下期活动"
|
|
resp.PopupMsg = "此活动报名人数已满,请留意下期活动"
|
|
item.FailType = 1
|
|
item.FailType = 1
|
|
- return
|
|
|
|
}
|
|
}
|
|
totalUserRestrictCount, err := models.GetActivitySignupByUserRestrictCount(uid, activityId)
|
|
totalUserRestrictCount, err := models.GetActivitySignupByUserRestrictCount(uid, activityId)
|
|
if err != nil {
|
|
if err != nil {
|