|
@@ -122,8 +122,12 @@ func (i *Info) ExhSignIn() {
|
|
|
SignNum: fre,
|
|
|
SignState: 0,
|
|
|
}
|
|
|
- //是否 已签到
|
|
|
mgoUserId := qu.ObjToString(sessVal["mgoUserId"])
|
|
|
+ //是否可签到
|
|
|
+ if !IsSignInIng(exhCode) {
|
|
|
+ return entity.NewResultSales{Error_msg: "当前活动未到签到时间", ExhRes: exhResult}
|
|
|
+ }
|
|
|
+ //是否 已签到
|
|
|
b, href := IsSignIn(mgoUserId, exhCode)
|
|
|
exhResult.Href = href
|
|
|
if !b {
|
|
@@ -235,6 +239,11 @@ func (i *Info) CollectInfo() {
|
|
|
//展会状态 是否结束
|
|
|
return entity.NewResultSales{Error_code: Error_code_1004, Error_msg: "活动已结束或当前活动不存在"}
|
|
|
}
|
|
|
+ if strings.Contains(Sysconfig.Source[source].Remark, "签到") && !IsSignInIng(exhCode) {
|
|
|
+ //未到签到时间
|
|
|
+ return entity.NewResultSales{Error_code: Error_code_1004, Error_msg: "当前活动未到签到时间"}
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
//企业验证
|
|
|
if Sysconfig.Source[source] != nil && Sysconfig.Source[source].EntValidation {
|
|
@@ -459,6 +468,11 @@ func (i *Info) RetainedCapital() {
|
|
|
//是否已报名
|
|
|
b, h := IsSignUp(mgoUserId, qu.ObjToString(phone), exhCode, state) //i.Header("user-agent"), "", sessVal
|
|
|
if b {
|
|
|
+ //是否可签到
|
|
|
+ if !IsSignInIng(exhCode) {
|
|
|
+ i.ServeJson(entity.FuncResult{Error_msg: "当前活动未到签到时间", ExhRes: exhResult})
|
|
|
+ return
|
|
|
+ }
|
|
|
//已报名 是否已签到
|
|
|
b, _ = IsSignIn(mgoUserId, exhCode)
|
|
|
//未签到
|