This commit is contained in:
chenbo 2024-01-30 14:53:44 +08:00
parent dcb560ade6
commit 19cde256a1
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ class FenceHouseController extends BaseApiController
public function leave() public function leave()
{ {
$params = $this->request->param(); $params = $this->request->param();
$params['user_id'] = $this->userId;
$params['create_time'] = date('Y-m-d H:i:s', time()); $params['create_time'] = date('Y-m-d H:i:s', time());
$params['update_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); Db::name('leave_fence_house_log')->insert($params);
@ -90,6 +91,7 @@ class FenceHouseController extends BaseApiController
public function exchange() public function exchange()
{ {
$params = $this->request->param(); $params = $this->request->param();
$params['user_id'] = $this->userId;
$params['create_time'] = date('Y-m-d H:i:s', time()); $params['create_time'] = date('Y-m-d H:i:s', time());
$params['update_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); Db::name('change_fence_house_log')->insert($params);