From 22b97ab255f39e41bcaa0d2a6378019393cf36b3 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 17 May 2024 00:21:06 +0800 Subject: [PATCH] updatae --- plugins/mysql/index.py | 2 +- plugins/mysql/js/mysql.js | 8 +++++--- plugins/webstats/js/stats.js | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 43bfe11bd..c884c8de4 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -2843,7 +2843,7 @@ def initSlaveStatusSyncUser(version=''): if slave_t['mode'] == '1': mode_name = 'gtid' - + print(local_mode, mode_name) if local_mode != mode_name: msg += base_t + '->同步模式不一致' continue diff --git a/plugins/mysql/js/mysql.js b/plugins/mysql/js/mysql.js index 523292339..bc5bfcc70 100755 --- a/plugins/mysql/js/mysql.js +++ b/plugins/mysql/js/mysql.js @@ -2310,9 +2310,11 @@ function addSlaveSyncUser(ip=''){ $('input[name="pass"]').val(a['MASTER_PASSWORD']); // console.log(a['MASTER_AUTO_POSITION'],typeof(a['MASTER_AUTO_POSITION'])); - // if (typeof(a['MASTER_AUTO_POSITION']) != 'undefined' ){ - // $('input[name="mode"]').val('1'); - // } + if (typeof(a['MASTER_AUTO_POSITION']) != 'undefined' ){ + $('input[name="mode"]').val('1'); + } else{ + $('input[name="mode"]').val('0'); + } }); }, yes:function(index){ diff --git a/plugins/webstats/js/stats.js b/plugins/webstats/js/stats.js index 76a967748..caf90bfda 100644 --- a/plugins/webstats/js/stats.js +++ b/plugins/webstats/js/stats.js @@ -2076,12 +2076,12 @@ var html = '
\ \ \ \ - \ \ \ \ \ \ + \ \ 时间: \
\