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("未选择用户"))