diff --git a/modules/web/api_creatmail.go b/modules/web/api_creatmail.go index 63e81a285..a915aeb94 100644 --- a/modules/web/api_creatmail.go +++ b/modules/web/api_creatmail.go @@ -65,13 +65,14 @@ func (this *Api_Comp) CreateMail(c *engine.Context) { CreateTime: uint64(time.Now().Unix()), DueTime: uint64(time.Now().Unix() + 30*24*3600), Check: false, - Reward: false, + Reward: true, Items: req.Items, Cid: req.Cid, 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) if _, err = this.module.service.RpcGo(