From cb71088ab2012d400bc2dde533d5d9d5049edf51 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 26 Jul 2022 20:17:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=89=A9=E5=93=81=E6=96=B0?= =?UTF-8?q?=E6=A0=87=E8=AF=86=E4=B8=BA=E5=A4=84=E7=90=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/items/modelitems.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/items/modelitems.go b/modules/items/modelitems.go index 6d7e919ef..12d825b06 100644 --- a/modules/items/modelitems.go +++ b/modules/items/modelitems.go @@ -69,7 +69,8 @@ func (this *ModelItemsComp) DelUserPack(uId string, ids ...string) (err error) { func (this *ModelItemsComp) UpdateUserPack(uid string, itmes ...*pb.DB_UserItemData) (err error) { for _, v := range itmes { this.ChangeList(uid, v.GridId, map[string]interface{}{ - "amount": v.Amount, + "amount": v.Amount, + "isNewItem": v.IsNewItem, }) } return