WIN-2308041133\Administrator 6 ay önce
ebeveyn
işleme
579621ce1c

+ 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;
         @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_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');
-
+        @file_put_contents("quanju.txt", json_encode($params) . "-参数解析2\r\n", 8);
         $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);
-
+        @file_put_contents("quanju.txt", json_encode($encryptMethod) . "-参数解析4\r\n", 8);
         $params['sign'] = Support\generate_sign($params, $secretKey, $encryptMethod);
-
+        @file_put_contents("quanju.txt", $params['sign'] . "-参数解析5\r\n", 8);
         $options = array_merge([
             'body' => Support\XML::build($params),
         ], $options);