|
@@ -13,6 +13,7 @@ use App\Servers\ESign\emun\HttpEmun;
|
|
|
use App\Servers\System\JobServer;
|
|
use App\Servers\System\JobServer;
|
|
|
use App\Servers\System\RedisDataServer;
|
|
use App\Servers\System\RedisDataServer;
|
|
|
use App\Servers\System\SmsServer;
|
|
use App\Servers\System\SmsServer;
|
|
|
|
|
+use Illuminate\Support\Facades\Log;
|
|
|
|
|
|
|
|
class ESignServer
|
|
class ESignServer
|
|
|
{
|
|
{
|
|
@@ -96,6 +97,7 @@ class ESignServer
|
|
|
$signAndBuildSignAndJsonHeader = EsignHttpHelper::signAndBuildSignAndJsonHeader($config['eSignAppId'], $config['eSignAppSecret'], $paramStr, $requestType, $apiaddr);
|
|
$signAndBuildSignAndJsonHeader = EsignHttpHelper::signAndBuildSignAndJsonHeader($config['eSignAppId'], $config['eSignAppSecret'], $paramStr, $requestType, $apiaddr);
|
|
|
//发起接口请求
|
|
//发起接口请求
|
|
|
$response = EsignHttpHelper::doCommHttp($config['eSignHost'], $apiaddr, $requestType, $signAndBuildSignAndJsonHeader, $paramStr);
|
|
$response = EsignHttpHelper::doCommHttp($config['eSignHost'], $apiaddr, $requestType, $signAndBuildSignAndJsonHeader, $paramStr);
|
|
|
|
|
+ Log::info($response->getBody());
|
|
|
$ret=json_decode($response->getBody(),true);
|
|
$ret=json_decode($response->getBody(),true);
|
|
|
|
|
|
|
|
if(isset($ret['code']) && $ret['code']==0){
|
|
if(isset($ret['code']) && $ret['code']==0){
|
|
@@ -152,6 +154,7 @@ class ESignServer
|
|
|
$signAndBuildSignAndJsonHeader = EsignHttpHelper::signAndBuildSignAndJsonHeader($config['eSignAppId'], $config['eSignAppSecret'], "", $requestType, $apiaddr);
|
|
$signAndBuildSignAndJsonHeader = EsignHttpHelper::signAndBuildSignAndJsonHeader($config['eSignAppId'], $config['eSignAppSecret'], "", $requestType, $apiaddr);
|
|
|
//发起接口请求
|
|
//发起接口请求
|
|
|
$response = EsignHttpHelper::doCommHttp($config['eSignHost'], $apiaddr, $requestType, $signAndBuildSignAndJsonHeader, "");
|
|
$response = EsignHttpHelper::doCommHttp($config['eSignHost'], $apiaddr, $requestType, $signAndBuildSignAndJsonHeader, "");
|
|
|
|
|
+ Log::info($response->getBody());
|
|
|
$ret=json_decode($response->getBody(),true);
|
|
$ret=json_decode($response->getBody(),true);
|
|
|
|
|
|
|
|
if(isset($ret['code']) && $ret['code']==0){
|
|
if(isset($ret['code']) && $ret['code']==0){
|