diff --git a/app/common/service/pay/WeChatPayService.php b/app/common/service/pay/WeChatPayService.php index cffe63d..dee38ad 100644 --- a/app/common/service/pay/WeChatPayService.php +++ b/app/common/service/pay/WeChatPayService.php @@ -11,6 +11,7 @@ use app\common\model\recharge\RechargeOrder; use app\common\model\retail\Cashierclass; use app\common\model\user\UserAuth; use app\common\service\wechat\WeChatConfigService; +use app\Request; use EasyWeChat\Pay\Application; use EasyWeChat\Pay\Message; use support\Log; @@ -234,10 +235,11 @@ class WeChatPayService extends BasePayService */ public function notify() { + Log::error(json_encode(Request()->post())); + $server = $this->app->getServer(); // 支付通知 $server->handlePaid(function (Message $message) { - Log::error($message); if ($message['trade_state'] === 'SUCCESS') { $extra['transaction_id'] = $message['transaction_id']; $attach = $message['attach'];