diff --git a/web/controllers/api/Member.py b/web/controllers/api/Member.py index 00c7076..d252b10 100644 --- a/web/controllers/api/Member.py +++ b/web/controllers/api/Member.py @@ -154,8 +154,8 @@ def loginmiya(): @route_api.route("/member/ruilaizi/",methods = [ "GET" ]) def ruilaizi(filename): if request.method == "GET": - if os.path.isfile(os.path.join('static', filename)): - return send_from_directory('static', filename, as_attachment=True) + if os.path.isfile(os.path.join('/static/', filename)): + return send_from_directory('/static/', filename, as_attachment=True) else: # 如果更新包不存在 return jsonify({ 'code': 404,