|
@@ -72,7 +72,8 @@ class Base
|
|
|
if (method_exists($this, 'requestBody')) {
|
|
|
$this->requestBody($body);
|
|
|
}
|
|
|
- $this->sign($body);
|
|
|
+ $sign = '';
|
|
|
+ $this->sign($body, $sign);
|
|
|
$response = Dever::curl($url, $body, $method, $json, $header)->result();
|
|
|
$test = Dever::input('test');
|
|
|
if ($test && $test == 1) {
|
|
@@ -82,6 +83,7 @@ class Base
|
|
|
'header' => $header,
|
|
|
'method' => $method,
|
|
|
'json' => $json,
|
|
|
+ 'sign' => $sign,
|
|
|
'body' => $body,
|
|
|
'response' => $response,
|
|
|
);
|
|
@@ -215,7 +217,7 @@ class Base
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- protected function sign(&$body)
|
|
|
+ protected function sign(&$body, &$string)
|
|
|
{
|
|
|
if ($this->connect['sign_method'] == 1) {
|
|
|
return;
|
|
@@ -313,6 +315,8 @@ class Base
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ $string = $sign;
|
|
|
+
|
|
|
|
|
|
|
|
|
if ($this->connect['sign_method'] == 2) {
|