|
@@ -6,6 +6,8 @@ namespace App\Http\Controllers\AdminApi;
|
|
|
use App\Http\Controllers\ApiController;
|
|
use App\Http\Controllers\ApiController;
|
|
|
use App\Models\Firm;
|
|
use App\Models\Firm;
|
|
|
use App\Models\Member;
|
|
use App\Models\Member;
|
|
|
|
|
+use App\Models\SignContract;
|
|
|
|
|
+use App\Models\SignRecord;
|
|
|
use App\Servers\ESign\comm\EsignLogHelper;
|
|
use App\Servers\ESign\comm\EsignLogHelper;
|
|
|
use App\Servers\System\JobServer;
|
|
use App\Servers\System\JobServer;
|
|
|
|
|
|
|
@@ -69,10 +71,27 @@ class NotifyController extends ApiController
|
|
|
|
|
|
|
|
}elseif ($data['action'] == 'SIGN_FLOW_COMPLETE'){
|
|
}elseif ($data['action'] == 'SIGN_FLOW_COMPLETE'){
|
|
|
//合同签署
|
|
//合同签署
|
|
|
- ContractServer::creatServer()->signEnd($data['signFlowStatus'],$data['signFlowId']);
|
|
|
|
|
|
|
+ $signFlowStatus = $data['signFlowStatus'];
|
|
|
|
|
+ $signFlowId = $data['signFlowId'];
|
|
|
|
|
+ SignContract::where('flow_id',$signFlowId)->update(['status'=>$signFlowStatus]);
|
|
|
}elseif ($data['action'] == 'SIGN_MISSON_COMPLETE'){
|
|
}elseif ($data['action'] == 'SIGN_MISSON_COMPLETE'){
|
|
|
//合同签署
|
|
//合同签署
|
|
|
- if(!empty($data['organization']) && !empty($data['signFlowId']))ContractServer::creatServer()->signFirmEnd($data['signResult'],$data['signFlowId'],$data['organization']);
|
|
|
|
|
|
|
+ $signFlowStatus = $data['signResult'];
|
|
|
|
|
+ $signFlowId = $data['signFlowId'];
|
|
|
|
|
+ $organization = $data['organization'];
|
|
|
|
|
+ $operator = $data['operator'];
|
|
|
|
|
+ if (!empty($signFlowId)){
|
|
|
|
|
+ $sign = SignContract::where('flow_id',$signFlowId)->first();
|
|
|
|
|
+ $sign_id = $sign->{'id'};
|
|
|
|
|
+ if (!empty($operator)){
|
|
|
|
|
+ $psnId = $operator['psnId'];
|
|
|
|
|
+ SignRecord::where('sign_id',$sign_id)->where('authType','PSN')->where('id_no',$psnId)->update(['status'=>$signFlowStatus]);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!empty($organization)){
|
|
|
|
|
+ $orgId = $organization['orgId'];
|
|
|
|
|
+ SignRecord::where('sign_id',$sign_id)->where('authType','ORG')->where('id_no',$orgId)->update(['status'=>$signFlowStatus]);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}elseif ($data['action']=='SEAL_AUTH_SIGN'){
|
|
}elseif ($data['action']=='SEAL_AUTH_SIGN'){
|
|
|
// SealServer::creatServer()->sealNotify($data['authStatus'],$data['sealAuthBizId']);
|
|
// SealServer::creatServer()->sealNotify($data['authStatus'],$data['sealAuthBizId']);
|
|
|
}
|
|
}
|