GM邮件状态异常修复

This commit is contained in:
meixiongfeng 2023-10-09 17:45:14 +08:00
parent 0936223d7f
commit 2d233bb2cd

View File

@ -65,13 +65,14 @@ func (this *Api_Comp) CreateMail(c *engine.Context) {
CreateTime: uint64(time.Now().Unix()), CreateTime: uint64(time.Now().Unix()),
DueTime: uint64(time.Now().Unix() + 30*24*3600), DueTime: uint64(time.Now().Unix() + 30*24*3600),
Check: false, Check: false,
Reward: false, Reward: true,
Items: req.Items, Items: req.Items,
Cid: req.Cid, Cid: req.Cid,
Param: req.Param, Param: req.Param,
} }
if len(req.Items) > 0 {
mail.Reward = true if len(mail.GetItems()) > 0 {
mail.Reward = false
} }
ctr, _ := context.WithTimeout(context.Background(), time.Second*5) ctr, _ := context.WithTimeout(context.Background(), time.Second*5)
if _, err = this.module.service.RpcGo( if _, err = this.module.service.RpcGo(