diff --git a/web/controllers/api/Member.py b/web/controllers/api/Member.py index 3b02b34..09b2a8a 100644 --- a/web/controllers/api/Member.py +++ b/web/controllers/api/Member.py @@ -154,9 +154,9 @@ def loginmiya(): @route_api.route("/member/ruilaizi",methods = [ "GET" ]) def ruilaizi(): # version = request.args.get('version', type=str) # 获取要下载的版本号 - package_path = '/veb/static/app-release.apk' # 假设更新包存放在 /path/to/update/package 目录下 + package_path = '/static/app/app.apk' # 假设更新包存放在 /path/to/update/package 目录下 if os.path.exists(package_path): # 如果更新包存在 - return send_from_directory(directory='/veb/static', filename='app-release.apk', as_attachment=True) + return send_from_directory(directory='/static/app', filename='app.apk', as_attachment=True) else: # 如果更新包不存在 return jsonify({ 'code': 404, diff --git a/web/static/app-release.apk b/web/static/app/app.apk similarity index 100% rename from web/static/app-release.apk rename to web/static/app/app.apk