mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 12:38:11 +08:00
Update PaymentService.php
This commit is contained in:
parent
8805a2b172
commit
f55f0c137e
@ -148,8 +148,11 @@ class PaymentService
|
||||
public static function notify(?array $data = null): Response
|
||||
{
|
||||
try {
|
||||
p(Library::$sapp->request->post(), false, 'wechat_pay_notify');
|
||||
$notify = static::withPayment()->notify(Library::$sapp->request->post());
|
||||
$result = empty($notify['result']) ? [] : json_decode($notify['result'], true);
|
||||
p($result, false, 'wechat_pay_notify');
|
||||
p('------------------', false, 'wechat_pay_notify');
|
||||
if (empty($result) || !is_array($result)) return response('error', 500);
|
||||
//订单支付通知处理
|
||||
if ($data['scen'] === 'order' && isset($result['trade_state']) && $result['trade_state'] == 'SUCCESS') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user