getRealIp(); $param['path'] = $request->path(); $param['content'] = $request->rawBody(); $logModel = new Log(); return $logModel->insertOne($param); } } public function getList($param) { $name = $param['name'] ?? ''; $page = $param['page']; $where = []; if (!empty($name)) { $where[] = ['name', 'like', '%' . $name . '%']; } $logModel = new Log(); $list = $logModel->getPaginateList($where, ['*'], ['id' => 'desc']); return dataReturn(0, 'success', $list); } }