This commit is contained in:
unknown 2023-09-02 11:46:40 +08:00
parent 3a790b0b93
commit 74586064f0
2 changed files with 18 additions and 1 deletions

View File

@ -146,6 +146,23 @@ class JunziqianController extends BaseApiController
return $response;
}
public function VehicleRentSigning($data, $id, $notify)
{
$requestUtils = new RequestUtils($this->serviceUrl, $this->appkey, $this->appSecret);
$request = new ApplySignReq();
$request->contractName = $data['name'];
$request->signatories = $data['signatories']; //签约方
$request->serverCa = 1; //是否需要服务端云证书
$request->fileType = 1; //合同上传方式 url
$request->url = $data['url'];
$request->notifyUrl = $notify.'?id='.$id;
$request->needQifengSign = 1;
//发起PING请求
// halt($request);
$response = $requestUtils->doPost("/v2/sign/applySign", $request);
return $response;
}
public function SigningLink($data)
{
//构建请求工具

View File

@ -151,7 +151,7 @@ class VehicleController extends BaseApiController
}elseif($contract['type'] == 2){
$notify_url = 'https://worker-task.lihaink.cn/api/index/cancelRent';
}
$signRes = app(JunziqianController::class)->Signing($signData, $params['id'],$notify_url);
$signRes = app(JunziqianController::class)->VehicleRentSigning($signData, $params['id'],$notify_url);
if ($signRes->success) {
$contract->save([
'id' => $contract['id'],