From 8d89ba1a5f9789601bf05c7608d303655203b888 Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Mon, 29 Jun 2026 20:47:46 +0800 Subject: [PATCH] 1 --- app/Services/PayService.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Services/PayService.php b/app/Services/PayService.php index c1ddcecd..f11b54c2 100644 --- a/app/Services/PayService.php +++ b/app/Services/PayService.php @@ -94,6 +94,8 @@ class PayService (new \App\Services\VipService())->success($payable, ['pay_at' => $payLog->pay_at]); } + // 延迟1分钟执行, 不然会出现错误信息: (10060001)支付单不存在 + sleep(60); // 订单支付成功, 调用发货信息API try { if (!$userId) { @@ -109,9 +111,9 @@ class PayService } $data = [ "order_key" => [ - "mchid" => config("wechat.payment.sub.mch_id"), - "out_trade_no" => $payLog->pay_sn, - "order_number_type" => 1, + // "mchid" => config("wechat.payment.sub.mch_id"), + // "out_trade_no" => $payLog->pay_sn, + "order_number_type" => 2, "transaction_id" => $payLog->out_trade_no, ], "logistics_type" => 4,