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,