WIN-2308041133\Administrator 5 달 전
부모
커밋
f1e594f18f
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      vendor/overtrue/wechat/src/Payment/Kernel/BaseClient.php

+ 2 - 0
vendor/overtrue/wechat/src/Payment/Kernel/BaseClient.php

@@ -81,6 +81,7 @@ class BaseClient
         $encryptMethod = Support\get_encrypt_method(Support\Arr::get($params, 'sign_type', 'MD5'), $secretKey);
         $params['sign'] = Support\generate_sign($params, $secretKey, $encryptMethod);
         if ($endpoint == 'papay/entrustweb'){
+            @file_put_contents("quanju3.txt", $params['notify_url'] . "-处理前的回调地址\r\n", 8);
             $params['notify_url'] = urlencode($params['notify_url']);
             @file_put_contents("quanju3.txt", $params['nonce_str'] . "-encode处理后的回调地址\r\n", 8);
         }
@@ -94,6 +95,7 @@ class BaseClient
         $response = $this->performRequest($endpoint, $method, $options);
         if ($endpoint == 'papay/entrustweb'){
             @file_put_contents("quanju3.txt", json_encode($response) . "-这是什么\r\n", 8);
+            @file_put_contents("quanju3.txt", json_encode($params) . "-参数解析2\r\n", 8);
         }
         @file_put_contents("quanju.txt", json_encode($params) . "-参数解析2\r\n", 8);
         return $returnResponse ? $response : $this->castResponseToType($response, $this->app->config->get('response_type'));