需求 屏蔽铁匠铺任务红点
This commit is contained in:
parent
3f26279a89
commit
be4b752590
@ -71,16 +71,16 @@ func (this *modelTask) updateTaskRecord(uid string, taskId int32) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// 红点检测
|
// 红点检测 2023/9/25需求 屏蔽铁匠铺任务红点
|
||||||
func (this *modelTask) checkReddot17107(uid string) bool {
|
func (this *modelTask) checkReddot17107(uid string) bool {
|
||||||
dt, err := this.getTaskRecord(uid)
|
// dt, err := this.getTaskRecord(uid)
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
return false
|
// return false
|
||||||
}
|
// }
|
||||||
for _, v := range dt.Tasks {
|
// for _, v := range dt.Tasks {
|
||||||
if v.Received == 1 {
|
// if v.Received == 1 {
|
||||||
return true
|
// return true
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user