75 lines
1.9 KiB
Diff
75 lines
1.9 KiB
Diff
|
|
From 2d5291afc5a6edfe9f2359e808eb4dab35834d6f Mon Sep 17 00:00:00 2001
|
||
|
|
From: lixin <lixinb@uniontech.com>
|
||
|
|
Date: Mon, 13 Nov 2023 10:00:20 +0800
|
||
|
|
Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=8E=AF=E5=A2=83=E6=A3=80?=
|
||
|
|
=?UTF-8?q?=E6=9F=A5=E8=BF=9B=E5=BA=A6=E6=8E=A5=E5=8F=A3?=
|
||
|
|
MIME-Version: 1.0
|
||
|
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
---
|
||
|
|
index.py | 33 ++++++++++++---------------------
|
||
|
|
1 file changed, 12 insertions(+), 21 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/index.py b/index.py
|
||
|
|
index 2faae57..4ca7b38 100644
|
||
|
|
--- a/index.py
|
||
|
|
+++ b/index.py
|
||
|
|
@@ -33,6 +33,7 @@ mods = {
|
||
|
|
'check_repo': migration.check_repo,
|
||
|
|
'get_repo_data': server.get_repo_data,
|
||
|
|
'check_environment':migration.check_environment,
|
||
|
|
+ 'get_environment_data': server.get_environment_data,
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
@@ -156,6 +157,17 @@ def check_environment():
|
||
|
|
return Response(mod, content_type='application/json')
|
||
|
|
|
||
|
|
|
||
|
|
+@app.route('/get_environment_data', methods=['GET', 'POST'])
|
||
|
|
+def get_environment_data():
|
||
|
|
+ """
|
||
|
|
+ 获取环境检查进度本
|
||
|
|
+ :return:
|
||
|
|
+ """
|
||
|
|
+ mod = check_methods()
|
||
|
|
+ if mod:
|
||
|
|
+ return Response(mod, content_type='application/json')
|
||
|
|
+
|
||
|
|
+
|
||
|
|
@app.route('/', methods=['GET', 'POST'])
|
||
|
|
def MT_index():
|
||
|
|
"""
|
||
|
|
@@ -297,27 +309,6 @@ def MT_repo_kernel():
|
||
|
|
return render_template('MT_kernel.html')
|
||
|
|
|
||
|
|
|
||
|
|
-@app.route('/Mt_environment', methods=['GET', 'POST'])
|
||
|
|
-def Mt_environment():
|
||
|
|
- """
|
||
|
|
- 跳转迁移前环境检测界面
|
||
|
|
- :return:
|
||
|
|
- """
|
||
|
|
- return render_template('MT_check_environment.html')
|
||
|
|
-
|
||
|
|
-
|
||
|
|
-@app.route('/MT_check_environment', methods=['GET', 'POST'])
|
||
|
|
-def MT_check_environment():
|
||
|
|
- """
|
||
|
|
- 迁移前系统环境检查
|
||
|
|
- :return:
|
||
|
|
- """
|
||
|
|
- mod = check_methods()
|
||
|
|
- if mod:
|
||
|
|
- return Response(mod, content_type='application/json')
|
||
|
|
- return render_template('MT_check_environment.html')
|
||
|
|
-
|
||
|
|
-
|
||
|
|
@app.route('/MT_check_progress', methods=['GET', 'POST'])
|
||
|
|
def MT_check_progress():
|
||
|
|
"""
|
||
|
|
--
|
||
|
|
2.20.1
|
||
|
|
|