From b02f6164c24ff901af9e2c19adf68f6501155b1c Mon Sep 17 00:00:00 2001 From: unknown <736250432@qq.com> Date: Fri, 25 Aug 2023 17:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/IndexController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index f97ee1604..00437e858 100755 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -32,7 +32,7 @@ class IndexController extends BaseApiController { - public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl','notifyProperty','notifyAuthentication','test']; + public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl','notifyProperty','notifyAuthentication']; @@ -142,7 +142,7 @@ class IndexController extends BaseApiController $pro_data[$k]['create_time']=time(); } Db::name('company_property')->insertAll($pro_data); - Db::name('vehicle_rent')->where('id',$vehicleRent['id'])->update(['status',2]); + Db::name('vehicle_rent')->update(['status'=>2,'id'=>$vehicleRent['id']]); } } }catch (\Exception $e){