|
|
@@ -76,7 +76,7 @@ class BaseClient
|
|
|
unset($base['nonce_str']);
|
|
|
}
|
|
|
$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);
|
|
|
$encryptMethod = Support\get_encrypt_method(Support\Arr::get($params, 'sign_type', 'MD5'), $secretKey);
|
|
|
$params['sign'] = Support\generate_sign($params, $secretKey, $encryptMethod);
|
|
|
@@ -95,6 +95,7 @@ class BaseClient
|
|
|
if ($endpoint == 'papay/entrustweb'){
|
|
|
@file_put_contents("quanju3.txt", json_encode($response) . "-这是什么\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'));
|
|
|
}
|
|
|
|