From bc7efbb6d4525fe6491eae0f46614012b62c83fe Mon Sep 17 00:00:00 2001 From: unknown <736250432@qq.com> Date: Fri, 25 Aug 2023 17:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AD=BE=E7=BA=A6=E5=9B=9E?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/IndexController.php | 5 +++-- app/common/logic/vehicle/VehicleLogic.php | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index 2b6476f28..f97ee1604 100755 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -32,7 +32,8 @@ class IndexController extends BaseApiController { - public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl','notifyProperty','notifyAuthentication']; + public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl','notifyProperty','notifyAuthentication','test']; + /** @@ -121,7 +122,7 @@ class IndexController extends BaseApiController $company = Db::name('company')->where('id',$vehicleRent['party_b'])->find(); //通知物流系统 if($vehicleRent && $company){ - $result = curl_post('http://logistics.lihaink.cn/api/updateRentRecord', [], [ + $result = curl_post('http://logistics.lihaink.cn/api/vehicleRent', [], [ 'contract_id' => $a['id'], 'car_id' => $vehicleRent['car_ids'], 'company_id' => $company['id'], diff --git a/app/common/logic/vehicle/VehicleLogic.php b/app/common/logic/vehicle/VehicleLogic.php index c9fd5289d..02976d1be 100644 --- a/app/common/logic/vehicle/VehicleLogic.php +++ b/app/common/logic/vehicle/VehicleLogic.php @@ -28,7 +28,10 @@ class VehicleLogic extends BaseLogic Db::startTrans(); try { $contract = Contract::create([ + 'admin_id' => 0, + 'company_id' =>0, 'contract_type' => 29, + 'file' => '', 'contract_no' => time(), 'create_time' => time(), 'update_time' => time(),