fixed
This commit is contained in:
parent
2c9a697a5f
commit
8cfe98adc6
|
@ -199,11 +199,11 @@ class WeChatPayMerchantService extends BasePayService
|
|||
$server = $this->app->getServer();
|
||||
// 支付通知
|
||||
$server->handlePaid(function (Message $message) {
|
||||
Log::info(['支付回调信息', $message]);
|
||||
\think\facade\Log::info(['支付回调信息', $message]);
|
||||
if ($message['trade_state'] === 'SUCCESS') {
|
||||
$this->handlePaid($message);
|
||||
} else {
|
||||
Log::info('支付失败', $message);
|
||||
\think\facade\Log::info('支付失败', $message);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
@ -232,7 +232,7 @@ class WeChatPayMerchantService extends BasePayService
|
|||
// 回调业务系统
|
||||
PaymentLogic::callBusiness($order['business_callback_url'], ['out_trade_no'=>$order['business_order_no'], 'transaction_id'=>$transaction_id, 'pay_status'=>1]);
|
||||
} catch (\Exception $e) {
|
||||
Log::error(['支付回调信息处理失败', $e->getMessage(),$message]);
|
||||
\think\facade\Log::error(['支付回调信息处理失败', $e->getMessage(),$message]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -243,7 +243,7 @@ class WeChatPayMerchantService extends BasePayService
|
|||
$server = $this->app->getServer();
|
||||
// 退款通知
|
||||
$server->handleRefunded(function (Message $message) {
|
||||
Log::info(['退款回调信息', $message]);
|
||||
\think\facade\Log::info(['退款回调信息', $message]);
|
||||
return true;
|
||||
});
|
||||
return $server->serve();
|
||||
|
|
Loading…
Reference in New Issue