From 2d233bb2cd29bfb8dd00815632a45e8029ca3b58 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 9 Oct 2023 17:45:14 +0800 Subject: [PATCH] =?UTF-8?q?GM=E9=82=AE=E4=BB=B6=E7=8A=B6=E6=80=81=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/web/api_creatmail.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(