$config,'user_level'=>UserLogic::getUserLevel()]); } /** * @notes 用户设置 * @return \think\response\Json * @author Tab * @date 2021/9/1 10:33 */ public function set() { $params = $this->request->post(); $result = UserLogic::set($params); if($result) { return JsonServer::success('保存成功'); } return JsonServer::error(UserLogic::getError()); } }