diff --git a/server/marketserver/api/v1/shopcart/shopcart.go b/server/marketserver/api/v1/shopcart/shopcart.go index 91d99706..6aa9fc24 100644 --- a/server/marketserver/api/v1/shopcart/shopcart.go +++ b/server/marketserver/api/v1/shopcart/shopcart.go @@ -261,6 +261,7 @@ func (this *ShopCartApi) Del(c *gin.Context) { dirty = true } } + cartDb.Goods = newGoods if dirty { this.save(openId, cartDb) }