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(),