From 160ff6a4a7bfae69da24a3d183711f8c90236ced Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 26 Jan 2024 03:03:07 +0800 Subject: [PATCH] update --- plugins/mysql/index.py | 6 +++--- plugins/mysql/js/mysql.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index bdbcf9479..4449bd9b2 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -794,7 +794,7 @@ def getMyPort(): return tmp.groups()[0].strip() -def setMyPort(): +def setMyPort(version): args = getArgs() data = checkArgs(args, ['port']) if not data[0]: @@ -806,7 +806,7 @@ def setMyPort(): rep = "port\s*=\s*([0-9]+)\s*\n" content = re.sub(rep, 'port = ' + port + '\n', content) mw.writeFile(file, content) - restart() + restart(version) return mw.returnJson(True, '编辑成功!') @@ -3229,7 +3229,7 @@ if __name__ == "__main__": elif func == 'my_port': print(getMyPort()) elif func == 'set_my_port': - print(setMyPort()) + print(setMyPort(version)) elif func == 'init_pwd': print(initMysqlPwd()) elif func == 'root_pwd': diff --git a/plugins/mysql/js/mysql.js b/plugins/mysql/js/mysql.js index 23fea49fd..90ac99d9b 100755 --- a/plugins/mysql/js/mysql.js +++ b/plugins/mysql/js/mysql.js @@ -200,7 +200,7 @@ function myPort(){ myPost('my_port','',function(data){ var con = '
\
\ - \ + \ \
'; $(".soft-man-con").html(con);