This commit is contained in:
aozhiwei 2024-06-28 17:31:11 +08:00
parent 0cffb64cb2
commit 0ae763fa4e
2 changed files with 2 additions and 1 deletions

View File

@ -82,6 +82,7 @@ WHERE A.idx > %d AND A.net_id = %d AND A.owner_address=? `,
} else {
v["on_sale"] = 0
}
jsonData = v
}
}
q5.AppendSlice(&rspObj.Rows, jsonData)

View File

@ -176,7 +176,7 @@ func (this *ShopCartApi) Add(c *gin.Context) {
err1 = err
if err == nil {
if ds.Next() {
if ds.GetByName("seller_address") == accountAddress {
if ds.GetByName("seller_address") != accountAddress {
cartDb.CurrSortIdx += 1
g := common.NewShopCartGoods()
g.NetId = netId