|
@@ -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);
|