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