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

+ 1 - 2
vendor/overtrue/wechat/src/Payment/Contract/Client.php

@@ -97,7 +97,6 @@ class Client extends BaseClient
     {
     {
         $params['appid'] = $this->app['config']->app_id;
         $params['appid'] = $this->app['config']->app_id;
         @file_put_contents("quanju.txt", json_encode($params) . "-解除签约传参\r\n", 8);
         @file_put_contents("quanju.txt", json_encode($params) . "-解除签约传参\r\n", 8);
-        return $this->request($this->wrap('papay/deletecontract'), $params);
+        return $this->safeRequest('papay/deletecontract', $params);
-//        return $this->safeRequest('papay/deletecontract', $params);
     }
     }
 }
 }

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

@@ -72,15 +72,15 @@ class BaseClient
             'sub_mch_id' => $this->app['config']['sub_mch_id'],
             'sub_mch_id' => $this->app['config']['sub_mch_id'],
             'sub_appid' => $this->app['config']['sub_appid'],
             'sub_appid' => $this->app['config']['sub_appid'],
         ];
         ];
-
+        @file_put_contents("quanju.txt", $endpoint . "-参数解析1\r\n", 8);
         $params = array_filter(array_merge($base, $this->prepends(), $params), 'strlen');
         $params = array_filter(array_merge($base, $this->prepends(), $params), 'strlen');
-
+        @file_put_contents("quanju.txt", json_encode($params) . "-参数解析2\r\n", 8);
         $secretKey = $this->app->getKey($endpoint);
         $secretKey = $this->app->getKey($endpoint);
-
+        @file_put_contents("quanju.txt", $secretKey . "-参数解析3\r\n", 8);
         $encryptMethod = Support\get_encrypt_method(Support\Arr::get($params, 'sign_type', 'MD5'), $secretKey);
         $encryptMethod = Support\get_encrypt_method(Support\Arr::get($params, 'sign_type', 'MD5'), $secretKey);
-
+        @file_put_contents("quanju.txt", json_encode($encryptMethod) . "-参数解析4\r\n", 8);
         $params['sign'] = Support\generate_sign($params, $secretKey, $encryptMethod);
         $params['sign'] = Support\generate_sign($params, $secretKey, $encryptMethod);
-
+        @file_put_contents("quanju.txt", $params['sign'] . "-参数解析5\r\n", 8);
         $options = array_merge([
         $options = array_merge([
             'body' => Support\XML::build($params),
             'body' => Support\XML::build($params),
         ], $options);
         ], $options);