This commit is contained in:
weiz 2023-11-07 14:18:35 +08:00
parent e8da9439a4
commit 6f06bb6843
2 changed files with 7 additions and 6 deletions

View File

@ -87,19 +87,19 @@
if($contract['type'] == 0){
$smsTitle = '《租赁合同》';
if(empty($contract['contract_logistic_id'])){
$notify_url = env('project.website_domain').'/api/notify/systemCarRent';
$notify_url = env('project.web_domain').'/api/notify/systemCarRent';
}else{
$notify_url = env('project.website_domain').'/api/notify/townCarRent';
$notify_url = env('project.web_domain').'/api/notify/townCarRent';
}
}elseif($contract['type'] == 1){
$smsTitle = '《自有车辆上传合同》';
$notify_url = env('project.website_domain').'/api/notify/selfCarRent';
$notify_url = env('project.web_domain').'/api/notify/selfCarRent';
}elseif($contract['type'] == 2){
$smsTitle = '《解约合同》';
$notify_url = env('project.website_domain').'/api/notify/cancelRent';
$notify_url = env('project.web_domain').'/api/notify/cancelRent';
}elseif($contract['type'] == 3){
$smsTitle = '《购买合同》';
$notify_url = env('project.website_domain').'/api/notify/buyCar';
$notify_url = env('project.web_domain').'/api/notify/buyCar';
}
$signRes = app(JunziqianController::class)->VehicleRentSigning($signData, $params['id'],$notify_url);
if ($signRes->success) {

View File

@ -262,7 +262,8 @@ class JunziqianController extends BaseLikeAdminController
//发起PING请求
// halt($request);
$response = $requestUtils->doPost("/v2/sign/applySign", $request);
Log::write('三轮车签约:'.json_encode($response).'地址:'.$notify,'notice');
$response['notify_url'] = $notify;
Log::write('三轮车签约:'.json_encode($response),'notice');
return $response;
}