异步调用 session push

This commit is contained in:
meixiongfeng 2023-09-08 14:57:17 +08:00
parent 8b26e067ea
commit bc97b6dcca

View File

@ -82,6 +82,7 @@ func (this *ModuleSys) CheckOpenCond(session comm.IUserSession, itype comm.Openc
if list, err = this.modelSys.GetOpenCondList(session.GetUserId()); err != nil { if list, err = this.modelSys.GetOpenCondList(session.GetUserId()); err != nil {
return return
} }
defer session.Push()
update = make(map[string]interface{}) update = make(map[string]interface{})
switch itype { switch itype {
case comm.OpencondTypePlatlv: case comm.OpencondTypePlatlv:
@ -114,6 +115,7 @@ func (this *ModuleSys) CheckOpenCond(session comm.IUserSession, itype comm.Openc
if err = this.modelSys.ChangeOpenCondData(session.GetUserId(), update); err != nil { if err = this.modelSys.ChangeOpenCondData(session.GetUserId(), update); err != nil {
this.Errorf("ChangeOpenCondData error: %v", err) this.Errorf("ChangeOpenCondData error: %v", err)
} }
} }
// 功能开启条件校验 // 功能开启条件校验