aaaaaaaa
This commit is contained in:
@@ -154,8 +154,8 @@ def loginmiya():
|
||||
@route_api.route("/member/ruilaizi/<filename>",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,
|
||||
|
||||
Reference in New Issue
Block a user