diff --git a/app/api/controller/JunziqianController.php b/app/api/controller/JunziqianController.php index 9a2c71e32..02aaf3c23 100644 --- a/app/api/controller/JunziqianController.php +++ b/app/api/controller/JunziqianController.php @@ -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) { //构建请求工具 diff --git a/app/api/controller/VehicleController.php b/app/api/controller/VehicleController.php index a883e3610..a46add3e8 100644 --- a/app/api/controller/VehicleController.php +++ b/app/api/controller/VehicleController.php @@ -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'],