+
+
返回{if $action=='edit'}编辑{else}添加{/if}容灾切换策略
+
+
+{/block}
+{block name="script"}
+
+
+
+
+{/block}
\ No newline at end of file
diff --git a/app/view/dmonitor/taskinfo.html b/app/view/dmonitor/taskinfo.html
new file mode 100644
index 0000000..d4a170e
--- /dev/null
+++ b/app/view/dmonitor/taskinfo.html
@@ -0,0 +1,73 @@
+{extend name="common/layout" /}
+{block name="title"}切换记录{/block}
+{block name="main"}
+
+
+{/block}
+{block name="script"}
+
+
+
+
+
+{/block}
\ No newline at end of file
diff --git a/composer.json b/composer.json
index c645bc1..c24415b 100644
--- a/composer.json
+++ b/composer.json
@@ -28,7 +28,8 @@
},
"require-dev": {
"symfony/var-dumper": "^4.2",
- "topthink/think-trace":"^1.0"
+ "topthink/think-trace":"^1.0",
+ "swoole/ide-helper": "^5.1"
},
"autoload": {
"psr-4": {
diff --git a/config/app.php b/config/app.php
index 8db0724..ce31425 100644
--- a/config/app.php
+++ b/config/app.php
@@ -30,5 +30,7 @@ return [
// 显示错误信息
'show_error_msg' => false,
- 'version' => '1001',
+ 'version' => '1003',
+
+ 'dbversion' => '1003'
];
diff --git a/config/console.php b/config/console.php
index a818a98..f260599 100644
--- a/config/console.php
+++ b/config/console.php
@@ -5,5 +5,6 @@
return [
// 指令定义
'commands' => [
+ 'dmtask' => 'app\command\Dmtask',
],
];
diff --git a/config/database.php b/config/database.php
index 0cf1346..a7e4814 100644
--- a/config/database.php
+++ b/config/database.php
@@ -51,7 +51,7 @@ return [
// 是否严格检查字段是否存在
'fields_strict' => true,
// 是否需要断线重连
- 'break_reconnect' => false,
+ 'break_reconnect' => true,
// 监听SQL
'trigger_sql' => env('app_debug', true),
// 开启字段缓存
diff --git a/public/index.php b/public/index.php
index e3c0fe9..6fd6033 100644
--- a/public/index.php
+++ b/public/index.php
@@ -12,6 +12,10 @@
// [ 应用入口文件 ]
namespace think;
+if (version_compare(PHP_VERSION, '7.4.0', '<')) {
+ die('require PHP >= 7.4 !');
+}
+
require __DIR__ . '/../vendor/autoload.php';
// 执行HTTP应用并响应
diff --git a/route/app.php b/route/app.php
index b32b677..2b32084 100644
--- a/route/app.php
+++ b/route/app.php
@@ -23,6 +23,7 @@ Route::any('/login', 'auth/login')->middleware(\think\middleware\SessionInit::cl
->middleware(\app\middleware\ViewOutput::class);
Route::get('/logout', 'auth/logout');
Route::any('/quicklogin', 'auth/quicklogin');
+Route::any('/dmtask/status', 'dmonitor/status');
Route::group(function () {
Route::any('/', 'index/index');
@@ -54,8 +55,19 @@ Route::group(function () {
Route::post('/record/remark/:id', 'domain/record_remark');
Route::post('/record/batch/:id', 'domain/record_batch');
Route::any('/record/log/:id', 'domain/record_log');
+ Route::post('/record/list', 'domain/record_list');
Route::get('/record/:id', 'domain/record');
+ Route::get('/dmonitor/overview', 'dmonitor/overview');
+ Route::post('/dmonitor/task/data', 'dmonitor/task_data');
+ Route::post('/dmonitor/task/log/data/:id', 'dmonitor/tasklog_data');
+ Route::get('/dmonitor/task/info/:id', 'dmonitor/taskinfo');
+ Route::any('/dmonitor/task/:action', 'dmonitor/taskform');
+ Route::get('/dmonitor/task', 'dmonitor/task');
+ Route::any('/dmonitor/noticeset', 'dmonitor/noticeset');
+ Route::get('/dmonitor/mailtest', 'dmonitor/mailtest');
+ Route::post('/dmonitor/clean', 'dmonitor/clean');
+
})->middleware(\app\middleware\CheckLogin::class)
->middleware(\app\middleware\ViewOutput::class);