From 4c019c615c8fa932e887117e975bbd87f5b13cdf Mon Sep 17 00:00:00 2001 From: renjianbo <263303411@qq.com> Date: Thu, 23 Nov 2023 22:50:47 +0800 Subject: [PATCH] aaa --- web/controllers/api/Member.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/controllers/api/Member.py b/web/controllers/api/Member.py index eb02a2c..690c527 100644 --- a/web/controllers/api/Member.py +++ b/web/controllers/api/Member.py @@ -169,7 +169,11 @@ def download(filename): if request.method == "GET": if os.path.isfile(os.path.join('static', filename)): return send_from_directory('static', filename, as_attachment=True) - abort(404) + else: # 如果更新包不存在 + return jsonify({ + 'code': 404, + 'msg': '找不到指定版本的安装包' + }) @route_api.route("/member/ruilaizitest",methods = [ "GET","POST" ]) def ruilaizitest():