From 3dced1e339617abf291d40fdb4f3581bc11c6274 Mon Sep 17 00:00:00 2001 From: apan Date: Thu, 4 Aug 2022 18:02:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4=E5=92=8C?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)