美食馆 红点规则修改
This commit is contained in:
parent
9c077aa803
commit
ce400d00d3
@ -70,15 +70,11 @@ func (this *Gourmet) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (
|
|||||||
}
|
}
|
||||||
func (this *Gourmet) CheckPoint20(uid string) bool {
|
func (this *Gourmet) CheckPoint20(uid string) bool {
|
||||||
|
|
||||||
cfgCom := this.configure.GetGlobalConf() // 获取总的下单时长
|
|
||||||
if cfgCom == nil {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
_gourmet, err := this.modelGourmet.getGourmetList(uid)
|
_gourmet, err := this.modelGourmet.getGourmetList(uid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if cfgCom.Gourmet < _gourmet.OrderCostTime { // 大于总时长是不允许的
|
if _gourmet.OrderCostTime > 0 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user