|
@@ -80,6 +80,10 @@ class BaseClient
|
|
|
$secretKey = $this->app->getKey($endpoint);
|
|
$secretKey = $this->app->getKey($endpoint);
|
|
|
$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'){
|
|
|
|
|
+ $params['nonce_str'] = urlencode($params['nonce_str']);
|
|
|
|
|
+ }
|
|
|
|
|
+ @file_put_contents("quanju.txt", $params['nonce_str'] . "-encode处理后的回调地址\r\n", 8);
|
|
|
$options = array_merge([
|
|
$options = array_merge([
|
|
|
'body' => Support\XML::build($params),
|
|
'body' => Support\XML::build($params),
|
|
|
], $options);
|
|
], $options);
|