update
This commit is contained in:
parent
a218ba05d2
commit
160ff6a4a7
|
|
@ -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':
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ function myPort(){
|
|||
myPost('my_port','',function(data){
|
||||
var con = '<div class="line ">\
|
||||
<div class="info-r ml0">\
|
||||
<input name="port" class="bt-input-text mr5 port" type="text" style="width:100px" value="'+data.data+'">\
|
||||
<input name="port" class="bt-input-text mr5 port" type="number" style="width:100px" value="'+data.data+'">\
|
||||
<button id="btn_change_port" name="btn_change_port" class="btn btn-success btn-sm mr5 ml5 btn_change_port">修改</button>\
|
||||
</div></div>';
|
||||
$(".soft-man-con").html(con);
|
||||
|
|
|
|||
Loading…
Reference in New Issue