From 9841a6989df0cce758192efcf2cfb823168fc7b6 Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Fri, 2 Aug 2024 10:38:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=B7=E6=A0=BC=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/OrderService.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/OrderService.go b/app/services/OrderService.go index 251613e..852a6a7 100644 --- a/app/services/OrderService.go +++ b/app/services/OrderService.go @@ -216,8 +216,8 @@ func OrderNotify(request front.YouChuRequest) (NotifyResponse front.YouChuOrderN return front.YouChuOrderNotifyResponse{RespCode: "000003", RespMsg: "订单不存在"} } - _, err = ordersmodel.GetInstance().GetDb().Where("id = ?", order.Id).Update(ordersmodel.Orders{ExchangeTime: time.Now()}) - utils.Log(nil, "更新订单err", order.Id, err) + _, err = ordersmodel.GetInstance().GetDb().Where("id = ?", orderDetail.Id).Update(ordersmodel.Orders{ExchangeTime: time.Now()}) + utils.Log(nil, "更新订单err", orderDetail.Id, err) var productDetail productsmodel.Products has, err = productsmodel.GetInstance().GetDb().Where("id = ?", orderDetail.ProductId).Get(&productDetail) if err != nil || !has {