|
@@ -155,6 +155,21 @@ func ActivityCancelDeadlineMsg(activityInfo *models.ActivityDetail) (popupMsg st
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+// 校验取消报名截止时间
|
|
|
+func CheckCancelDeadline(activityInfo *models.ActivityDetail) (popupMsg string) {
|
|
|
+ if !activityInfo.IsResearchPoints {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //获取活动是否扣点以及扣点规则明细
|
|
|
+ if activityInfo.CancelDeadline != utils.FormatDateTimeInit {
|
|
|
+ timeResp := utils.StrTimeToTime(activityInfo.CancelDeadline)
|
|
|
+ if timeResp.Before(time.Now()) {
|
|
|
+ popupMsg = "当前时间点已无法取消报名,\n\n若想取消,请联系对口销售"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
// // 校验报名顺序 截止时间>点数>邮箱
|
|
|
func CheckActivityUserAll(activityInfo *models.ActivityDetail, wxUser *models.WxUserItem) (popupMsg string, err error) {
|
|
|
_, popupMsg = CheckSiginupDeadline(activityInfo)
|