|
@@ -3,8 +3,6 @@ package controllers
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
- "github.com/medivhzhan/weapp/v2"
|
|
|
- "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
"hongze/hongze_cygx/models"
|
|
|
"hongze/hongze_cygx/services"
|
|
|
"hongze/hongze_cygx/utils"
|
|
@@ -12,6 +10,9 @@ import (
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
"time"
|
|
|
+
|
|
|
+ "github.com/medivhzhan/weapp/v2"
|
|
|
+ "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
)
|
|
|
|
|
|
// 活动
|
|
@@ -1350,6 +1351,7 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
|
signupStatus = "BreakPromise"
|
|
|
resp.PopupMsg = "由于爽约次数过多,您暂时被限制报名资格,请联系对口销售"
|
|
|
item.FailType = 3
|
|
|
+ return
|
|
|
}
|
|
|
totalSignupCompany, err := models.GetActivitySignupCompanyCount(activityId, user.CompanyId)
|
|
|
if err != nil {
|
|
@@ -1361,6 +1363,7 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
|
signupStatus = "TwoPeople"
|
|
|
resp.PopupMsg = "单机构最多2人报名同一活动,您所在机构报名人数已满"
|
|
|
item.FailType = 2
|
|
|
+ return
|
|
|
}
|
|
|
totaSignupPeopleNum, err := models.GetActivitySignupSuccessCount(activityId)
|
|
|
if err != nil {
|
|
@@ -1372,6 +1375,7 @@ func (this *ActivityCoAntroller) SignupAdd() {
|
|
|
signupStatus = "FullStarffed"
|
|
|
resp.PopupMsg = "此活动报名人数已满,请留意下期活动"
|
|
|
item.FailType = 1
|
|
|
+ return
|
|
|
}
|
|
|
totalUserRestrictCount, err := models.GetActivitySignupByUserRestrictCount(uid, activityId)
|
|
|
if err != nil {
|