获取签约证据
This commit is contained in:
parent
71c56c0718
commit
0f54f56a4d
app/api/controller
@ -32,7 +32,7 @@ use think\response\Json;
|
|||||||
*/
|
*/
|
||||||
class IndexController extends BaseApiController
|
class IndexController extends BaseApiController
|
||||||
{
|
{
|
||||||
public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl', 'notifyProperty', 'notifyAuthentication', 'notifyVehicleContractUpdate', 'systemCarRent', 'selfCarRent', 'cancelRent'];
|
public array $notNeedLogin = ['test','index', 'config', 'policy', 'decorate', 'notifyUrl', 'notifyProperty', 'notifyAuthentication', 'notifyVehicleContractUpdate', 'systemCarRent', 'selfCarRent', 'cancelRent'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @notes 首页数据
|
* @notes 首页数据
|
||||||
@ -49,6 +49,11 @@ class IndexController extends BaseApiController
|
|||||||
return $this->data($result);
|
return $this->data($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test() {
|
||||||
|
$res = app(JunziqianController::class)->downloadVehicleContractEvidence('APL1699006920226521088','泸县供投里海农业科技有限公司','91510521MAC477XA13');
|
||||||
|
dump($res);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @notes 全局配置
|
* @notes 全局配置
|
||||||
|
@ -216,6 +216,27 @@ class JunziqianController extends BaseApiController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function downloadVehicleContractEvidence($applyNo,$companyName,$companyCode) {
|
||||||
|
//构建请求工具
|
||||||
|
$requestUtils=new RequestUtils($this->serviceUrl, $this->appkey, $this->appSecret);
|
||||||
|
//初始化合同参数
|
||||||
|
$request=array(
|
||||||
|
"applyNo" => $applyNo,
|
||||||
|
"fullName" => $companyName, //签约人名称(合同发起接口中传入的签署人姓名)
|
||||||
|
"identityCard" => $companyCode, //统一社会信用代码
|
||||||
|
"identityType" => 12, //证件类型 1身份证, 2护照, 3台胞证, 4港澳居民来往内地通行证, 11营业执照, 12统一社会信用代码, 20子账号, 99其他
|
||||||
|
"evidenceType" => 0 //证据类型,0图片,1视频,2人脸证据
|
||||||
|
);
|
||||||
|
$response = $requestUtils->doPost("/v2/sign/evidenceLinkFile",$request);
|
||||||
|
if ($response->success) {
|
||||||
|
$resData = (array)$response->data;
|
||||||
|
$this->getDownload($resData['link'], root_path() . 'public/uploads/vehicle_contract/' . $applyNo . '.png');
|
||||||
|
return env('project.website_domain').'/uploads/vehicle_contract/' . $applyNo . '.png';
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function SigningLink($data)
|
public function SigningLink($data)
|
||||||
{
|
{
|
||||||
//构建请求工具
|
//构建请求工具
|
||||||
|
Loading…
x
Reference in New Issue
Block a user