diff --git a/app/util/common.py b/app/util/common.py index 7aad113..331e371 100644 --- a/app/util/common.py +++ b/app/util/common.py @@ -5,8 +5,6 @@ from functools import wraps from flask import request, session -from app import rpc - def split_group(dict_list, key): dict_list.sort(key=itemgetter(key)) @@ -24,6 +22,7 @@ def login_required(f): """ 登陆保护,验证用户是否登陆 """ + from app import rpc @wraps(f) def wrapper(*args, **kwargs):