Browse Source

协议签名

whitefang 2 năm trước cách đây
mục cha
commit
4c4868a912
1 tập tin đã thay đổi với 1 bổ sung và 0 xóa
  1. 1 0
      app/common/service/pay/WeChatPayService.php

+ 1 - 0
app/common/service/pay/WeChatPayService.php

@@ -372,6 +372,7 @@ class WeChatPayService extends BasePayService
         $server = $this->app->getServer();
         // 支付通知
         $server->handlePaid(function (Message $message) {
+            Log::write(json_encode($message,JSON_UNESCAPED_UNICODE));
             if ($message['trade_state'] === 'SUCCESS') {
                 $extra['transaction_id'] = $message['transaction_id'];
                 $attach = $message['attach'];