This commit is contained in:
chenbo 2024-01-30 14:51:57 +08:00
parent 1956f2b25c
commit dcb560ade6
1 changed files with 0 additions and 2 deletions

View File

@ -100,8 +100,6 @@ class FenceHouseController extends BaseApiController
{ {
$params = $this->request->param(); $params = $this->request->param();
$pageNo = $params['page_no'] ?? 1; $pageNo = $params['page_no'] ?? 1;
$params['create_time'] = date('Y-m-d H:i:s', time());
$params['update_time'] = date('Y-m-d H:i:s', time());
$lists = Db::name('change_fence_house_log')->where('user_id', $this->userId)->append(['old_fence_house_name', 'new_fence_house_name']) $lists = Db::name('change_fence_house_log')->where('user_id', $this->userId)->append(['old_fence_house_name', 'new_fence_house_name'])
->withAttr('old_fence_house_name',function ($value, $data){ ->withAttr('old_fence_house_name',function ($value, $data){
return FenceHouse::where('id', $data['old_fence_house_id'])->value('fence_house_name'); return FenceHouse::where('id', $data['old_fence_house_id'])->value('fence_house_name');