From 41b0bc9909fbf1d115d653167463c683588d7408 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Thu, 9 Dec 2021 14:26:39 +0800 Subject: [PATCH] settter --- app/controller/api/Recharge.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controller/api/Recharge.php b/app/controller/api/Recharge.php index 340d251..75fe07a 100644 --- a/app/controller/api/Recharge.php +++ b/app/controller/api/Recharge.php @@ -109,7 +109,6 @@ class Recharge extends Base if ($message['return_code'] == 'SUCCESS') { // return_code 表示通信状态,不代表支付状态 if (isset($message['result_code']) && $message['result_code'] == 'SUCCESS') { - if (isset($message['trade_state']) && $message['trade_state'] == 'SUCCESS') { $this->log("订单支付成功开始数据操作"); Db::startTrans(); try { @@ -141,7 +140,7 @@ class Recharge extends Base $this->log(sprintf("[微信支付回调][%s][%s]订单支付成功-修改订单状态失败-Exception info:%s", date('Y-m-d H:i:s'), $message['out_trade_no'], $m), 'info'); return $fail('Order status edit failed.'); } - } + } } return $fail('通信失败,请稍后再通知我');