diff --git a/apps/user/views.py b/apps/user/views.py index ff3f6a5..db49906 100644 --- a/apps/user/views.py +++ b/apps/user/views.py @@ -68,6 +68,7 @@ def get_user_info_list(): @user_router.route("/add", methods=["GET", "POST"]) @token_auth.login_required def add_user_info(): + create_user_info = g.current_user try: obj = EntityUser( real_name=request.values.get("real_name"), @@ -75,9 +76,12 @@ def add_user_info(): sex=request.values.get("sex"), email=request.values.get("email"), user_code=request.values.get("user_code"), - role_name=request.values.get("role_name"), qq=request.values.get("qq"), role_id=request.values.get("role_id"), + role_name=request.values.get("role_name"), + create_date=Utils.get_str_datetime(), + create_user_id=create_user_info.user_id, + create_user_name=create_user_info.real_name, is_enabled=request.values.get("is_enabled") ) BllUser().insert(obj)