|
@@ -86,7 +86,7 @@ class ESignServer
|
|
|
"redirectConfig"=>[
|
|
"redirectConfig"=>[
|
|
|
"redirectUrl"=>'',
|
|
"redirectUrl"=>'',
|
|
|
],
|
|
],
|
|
|
- "notifyUrl"=>route('notify.esignNotify'),
|
|
|
|
|
|
|
+ "notifyUrl"=>route('adminApi.notify.esignNotify'),
|
|
|
"clientType"=>"ALL",
|
|
"clientType"=>"ALL",
|
|
|
"appScheme"=>""
|
|
"appScheme"=>""
|
|
|
];
|
|
];
|
|
@@ -96,13 +96,12 @@ class ESignServer
|
|
|
//发起接口请求
|
|
//发起接口请求
|
|
|
$response = EsignHttpHelper::doCommHttp($config['eSignHost'], $apiaddr, $requestType, $signAndBuildSignAndJsonHeader, $paramStr);
|
|
$response = EsignHttpHelper::doCommHttp($config['eSignHost'], $apiaddr, $requestType, $signAndBuildSignAndJsonHeader, $paramStr);
|
|
|
$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){
|
|
|
$authShortUrl=RedisDataServer::creatServer()->getData($m_id.'_memberUrl');
|
|
$authShortUrl=RedisDataServer::creatServer()->getData($m_id.'_memberUrl');
|
|
|
if($authShortUrl){
|
|
if($authShortUrl){
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
- $signMember=Member::where('m_id',$m_id)->where('authType','PSN')->where([['updated_at','<=',date('Y-m-d H:i:s',time()-600),'or'],['authShortUrl','=','','or']])->first();
|
|
|
|
|
|
|
+ $signMember=Member::where('id',$m_id)->where('authType','PSN')->where([['updated_at','<=',date('Y-m-d H:i:s',time()-600),'or'],['authShortUrl','=','','or']])->first();
|
|
|
if($signMember){
|
|
if($signMember){
|
|
|
$authUrl = $ret['data']['authUrl'];
|
|
$authUrl = $ret['data']['authUrl'];
|
|
|
$authShortUrl = $ret['data']['authShortUrl'];
|
|
$authShortUrl = $ret['data']['authShortUrl'];
|
|
@@ -133,8 +132,8 @@ class ESignServer
|
|
|
*/
|
|
*/
|
|
|
function personsidentityinfo($m_id,$phone,$psnName,$id_number)
|
|
function personsidentityinfo($m_id,$phone,$psnName,$id_number)
|
|
|
{
|
|
{
|
|
|
- $info = Member::where('id_number',$id_number)->where('id',$m_id)->where('authType','PSN')->first();
|
|
|
|
|
- if($info->{'realnameStatus'}==1 && $info->{'psnId'}!=''){
|
|
|
|
|
|
|
+ $info = Member::where('id_number',$id_number)->where('id',$m_id)->where('authType','PSN')->select(['realnameStatus','authorizeUserInfo','psnId'])->first();
|
|
|
|
|
+ if($info->{'realnameStatus'}==1 && $info->{'authorizeUserInfo'} == 1 && $info->{'psnId'}!=''){
|
|
|
return $info->{'realnameStatus'};
|
|
return $info->{'realnameStatus'};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -158,7 +157,6 @@ class ESignServer
|
|
|
'authorizeUserInfo'=>$authorizeUserInfo,
|
|
'authorizeUserInfo'=>$authorizeUserInfo,
|
|
|
'psnId'=>$psnId,
|
|
'psnId'=>$psnId,
|
|
|
]);
|
|
]);
|
|
|
-
|
|
|
|
|
if (empty($realnameStatus) || empty($authorizeUserInfo)){//走个人认证授权流程
|
|
if (empty($realnameStatus) || empty($authorizeUserInfo)){//走个人认证授权流程
|
|
|
$this->psnauthurl($m_id,$phone,$psnName,$id_number,$psnId);
|
|
$this->psnauthurl($m_id,$phone,$psnName,$id_number,$psnId);
|
|
|
}
|
|
}
|