From 8c2c4bfc20ebb6ac527432aac012c6fcb5e66f3b Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Tue, 28 Jul 2026 16:04:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=AE=9D=E7=BD=91=E9=A1=B5=E6=94=AF=E4=BB=98=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E9=97=AE=E9=A2=98=20=E5=B7=B2=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E8=AE=A2=E5=8D=95=E6=94=B6=E5=88=B0=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=9B=9E=E8=B0=83=E5=8A=A0=E5=85=A5=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/thirdpay/thirdpay_notify/notify.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/services/thirdpay/thirdpay_notify/notify.go b/app/services/thirdpay/thirdpay_notify/notify.go index a9b4da0..3393b88 100644 --- a/app/services/thirdpay/thirdpay_notify/notify.go +++ b/app/services/thirdpay/thirdpay_notify/notify.go @@ -208,19 +208,20 @@ func (o *OrderNotify) checkApp() { } func (o *OrderNotify) checkOrder() { - utils.Log(nil, "检查订单状态:%d", o.OrderId) + utils.Log(nil, "检查订单状态", o.OrderId) cond := builder.NewCond() cond = cond.And(builder.Eq{"id": o.OrderId}) o.order, o.Code = services.OrderFindOne(&ordersmodel.Orders{}, cond) - if o.Code != errorcode.OrdersExist { + if o.Code != errorcode.Success { + utils.Log(nil, "订单状态错误,当前查询code", o.Code) return } - utils.Log(nil, "收到回调,当前状态:%d", o.order.Status) + utils.Log(nil, "收到回调,当前状态", o.order.Status) switch o.order.Status { case common.ORDER_STATUS_PAYING: return default: - utils.Log(nil, "订单状态异常,加入异常数据表:%d", o.order.Status) + utils.Log(nil, "订单状态异常,加入异常数据表", o.order.Status) exceptionModel := data.NewOrderExceptionRepo(orderexceptionmodel.GetInstance().GetDb()) _, err := exceptionModel.InsertOne(&orderexceptionmodel.OrderException{ OrderId: o.order.Id,