This commit is contained in:
2023-11-23 22:35:45 +08:00
parent 86b970fada
commit 3487f9f332
2 changed files with 8 additions and 0 deletions

View File

@@ -163,6 +163,14 @@ def ruilaizi():
'msg': '找不到指定版本的安装包' 'msg': '找不到指定版本的安装包'
}) })
# 下载文件服务
@app.route("/member/download/<filename>", methods=['GET'])
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)
@route_api.route("/member/ruilaizitest",methods = [ "GET","POST" ]) @route_api.route("/member/ruilaizitest",methods = [ "GET","POST" ])
def ruilaizitest(): def ruilaizitest():
resp = {'code': 200, 'msg': 'r操作成功~', 'data': {}} resp = {'code': 200, 'msg': 'r操作成功~', 'data': {}}

BIN
web/static/app.apk Normal file

Binary file not shown.