From 7610e1d8a608093d01357fb1cc5f6e90ae7ef77e Mon Sep 17 00:00:00 2001 From: chenlin Date: Fri, 29 Nov 2024 09:42:27 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BC=98=E5=8C=96=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=9B=B6=E5=94=AE=E8=AE=A2=E5=8D=95=E6=94=AF=E4=BB=98=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=8E=A5=E5=8F=A3=EF=BC=8C=E6=96=B0=E5=A2=9Epay=5Fini?= =?UTF-8?q?t=E7=8A=B6=E6=80=81=E6=9F=A5=E8=AF=A2=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/models/erp_order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/models/erp_order.go b/app/admin/models/erp_order.go index 5b13bd5..43bc8e2 100644 --- a/app/admin/models/erp_order.go +++ b/app/admin/models/erp_order.go @@ -2516,7 +2516,7 @@ func QueryErpOrderPayStatus(billSn string) (*ErpOrderPayResp, error) { // 查询待支付订单 var orderRecordInfo ErpOrderRecord - err = orm.Eloquent.Table("erp_order_record").Where("bill_sn = ? and status in (?)", billSn, []string{Paying, PayOk}). + err = orm.Eloquent.Table("erp_order_record").Where("bill_sn = ? and status in (?)", billSn, []string{PayInit, Paying, PayOk}). Find(&orderRecordInfo).Error if err != nil { logger.Error("未查询到订单:", logger.Field("err", err))