From 4d40edb7dac4f0207d1c30f7db6ff3315b8648be Mon Sep 17 00:00:00 2001 From: 13507605001 Date: Mon, 12 Dec 2022 09:32:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=A0=E9=99=A4=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user/views.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/user/views.py b/apps/user/views.py index b2519fb..fc4779e 100644 --- a/apps/user/views.py +++ b/apps/user/views.py @@ -145,7 +145,9 @@ def update_user_info(): @token_auth.login_required def del_user(): user_id = request.values.get("user_id") - if user_id: - BllUser().delete(EntityUser.user_id==user_id) - return jsonify(Utils.true_return(msg="删除成功")) - return jsonify(Utils.false_return("未选择用户")) + user_id_list = user_id.split(',') + for i in user_id_list: + # if user_id: + BllUser().delete(EntityUser.user_id==i) + return jsonify(Utils.true_return(msg="删除成功")) + # return jsonify(Utils.false_return("未选择用户"))