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);