美食馆 红点规则修改

This commit is contained in:
meixiongfeng 2022-12-21 10:44:58 +08:00
parent 9c077aa803
commit ce400d00d3

View File

@ -70,15 +70,11 @@ func (this *Gourmet) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (
}
func (this *Gourmet) CheckPoint20(uid string) bool {
cfgCom := this.configure.GetGlobalConf() // 获取总的下单时长
if cfgCom == nil {
return false
}
_gourmet, err := this.modelGourmet.getGourmetList(uid)
if err != nil {
return false
}
if cfgCom.Gourmet < _gourmet.OrderCostTime { // 大于总时长是不允许的
if _gourmet.OrderCostTime > 0 {
return false
}
return true