From 19cde256a1ec238e29409480365842ea8472c69b Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 30 Jan 2024 14:53:44 +0800 Subject: [PATCH] update --- app/api/controller/FenceHouseController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/api/controller/FenceHouseController.php b/app/api/controller/FenceHouseController.php index cd75653..60beead 100644 --- a/app/api/controller/FenceHouseController.php +++ b/app/api/controller/FenceHouseController.php @@ -63,6 +63,7 @@ class FenceHouseController extends BaseApiController public function leave() { $params = $this->request->param(); + $params['user_id'] = $this->userId; $params['create_time'] = date('Y-m-d H:i:s', time()); $params['update_time'] = date('Y-m-d H:i:s', time()); Db::name('leave_fence_house_log')->insert($params); @@ -90,6 +91,7 @@ class FenceHouseController extends BaseApiController public function exchange() { $params = $this->request->param(); + $params['user_id'] = $this->userId; $params['create_time'] = date('Y-m-d H:i:s', time()); $params['update_time'] = date('Y-m-d H:i:s', time()); Db::name('change_fence_house_log')->insert($params);