6
0
Fork 0
panliang 2026-06-29 20:47:46 +08:00
parent efd6ef7f83
commit 8d89ba1a5f
1 changed files with 5 additions and 3 deletions

View File

@ -94,6 +94,8 @@ class PayService
(new \App\Services\VipService())->success($payable, ['pay_at' => $payLog->pay_at]); (new \App\Services\VipService())->success($payable, ['pay_at' => $payLog->pay_at]);
} }
// 延迟1分钟执行, 不然会出现错误信息: (10060001)支付单不存在
sleep(60);
// 订单支付成功, 调用发货信息API // 订单支付成功, 调用发货信息API
try { try {
if (!$userId) { if (!$userId) {
@ -109,9 +111,9 @@ class PayService
} }
$data = [ $data = [
"order_key" => [ "order_key" => [
"mchid" => config("wechat.payment.sub.mch_id"), // "mchid" => config("wechat.payment.sub.mch_id"),
"out_trade_no" => $payLog->pay_sn, // "out_trade_no" => $payLog->pay_sn,
"order_number_type" => 1, "order_number_type" => 2,
"transaction_id" => $payLog->out_trade_no, "transaction_id" => $payLog->out_trade_no,
], ],
"logistics_type" => 4, "logistics_type" => 4,