增加价格排序

This commit is contained in:
qiyunfanbo126.com 2024-08-02 10:05:12 +08:00
parent 6770536966
commit 55edaf8f35
1 changed files with 2 additions and 1 deletions

View File

@ -216,7 +216,8 @@ func OrderNotify(request front.YouChuRequest) (NotifyResponse front.YouChuOrderN
return front.YouChuOrderNotifyResponse{RespCode: "000003", RespMsg: "订单不存在"}
}
ordersmodel.GetInstance().GetDb().Where("id = ?", order.Id).Update(ordersmodel.Orders{ExchangeTime: time.Now()})
_, err = ordersmodel.GetInstance().GetDb().Where("id = ?", order.Id).Update(ordersmodel.Orders{ExchangeTime: time.Now()})
utils.Log(nil, "更新订单err", err)
var productDetail productsmodel.Products
has, err = productsmodel.GetInstance().GetDb().Where("id = ?", orderDetail.ProductId).Get(&productDetail)
if err != nil || !has {