fetch(); } /** * 权限列表 * @param Request $request * @return array * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException */ public function lst(Request $request) { $where = Util::postMore([ ['name', ''], ['ip', ''], ['start_time', ''], ['end_time', ''], ['page', 1], ['limit', 20], ]); return app("json")->layui(lModel::systemPage($where)); } /** * 清空日志 * @param Request $request * @throws Exception */ public function empty(Request $request) { $res = lModel::where("1=1")->delete(); return $res ? app("json")->success("操作成功", 'code') : app("json")->fail("操作失败"); } }