|  | @@ -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;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          # 如果是ssl 这里需要处理一下,后续处理吧
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          if ($this->connect['sign_method'] == 2) {
 |