|
@@ -183,6 +183,7 @@ class RensheService
|
|
|
|
|
|
//请求头
|
|
//请求头
|
|
$enTime = base64_encode(http_request('http://sm4.jinjianghc.com/encode.php', 'POST', ['data' => $this->_time]));
|
|
$enTime = base64_encode(http_request('http://sm4.jinjianghc.com/encode.php', 'POST', ['data' => $this->_time]));
|
|
|
|
+ Log::info($this->_log_name . 'TOKEN:' . $enTime);
|
|
// $enTime = base64_encode(openssl_encrypt($this->_time, "SM4", self::KEY, 0, self::IV));
|
|
// $enTime = base64_encode(openssl_encrypt($this->_time, "SM4", self::KEY, 0, self::IV));
|
|
$header = [
|
|
$header = [
|
|
'Content-Type: application/json',
|
|
'Content-Type: application/json',
|
|
@@ -193,9 +194,9 @@ class RensheService
|
|
|
|
|
|
//发送数据
|
|
//发送数据
|
|
$enData = $this->_enDataCbc();
|
|
$enData = $this->_enDataCbc();
|
|
- Log::info($this->_log_name . '返回数据1:' . $enData);
|
|
|
|
|
|
+// Log::info($this->_log_name . '返回数据1:' . $enData);
|
|
$response = http_request($url, 'POST', $enData, $header);
|
|
$response = http_request($url, 'POST', $enData, $header);
|
|
- Log::info($this->_log_name . '返回数据2:' . $response);
|
|
|
|
|
|
+// Log::info($this->_log_name . '返回数据2:' . $response);
|
|
$deData = $this->_deDataCbc($response);
|
|
$deData = $this->_deDataCbc($response);
|
|
|
|
|
|
Log::info($this->_log_name . '返回数据:' . json_encode($deData));
|
|
Log::info($this->_log_name . '返回数据:' . json_encode($deData));
|