This commit is contained in:
Mr Chen
2018-12-03 13:11:43 +08:00
parent d8f94c799a
commit 0a69659f52
4 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ def network():
return public.getJson(data)
@system.route("/update_panel")
@system.route("/update_server")
def updatePanel():
return public.returnJson(False, "12")
-2
View File
@@ -32,8 +32,6 @@ pip install -r /www/server/mdserver-web/requirements.txt
endTime=`date +%s`
((outTime=($endTime-$startTime)/60))
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!"
+2 -2
View File
@@ -487,7 +487,7 @@ setImg();
//检查更新
function checkUpdate() {
var loadT = layer.msg(lan.index.update_get, { icon: 16, time: 0, shade: [0.3, '#000'] });
$.get('/ajax?action=UpdatePanel&check=true', function(rdata) {
$.get('/system/update_server?check=true', function(rdata) {
layer.close(loadT);
if (rdata.status === false) {
layer.confirm(rdata.msg, { title: lan.index.update_check, icon: 1, closeBtn: 2, btn: [lan.public.know, lan.public.close] });
@@ -495,7 +495,7 @@ function checkUpdate() {
}
layer.msg(rdata.msg, { icon: 1 });
if (rdata.version != undefined) updateMsg();
});
},'json');
}
+2 -2
View File
@@ -3,11 +3,11 @@
<div class="index-pos-box bgw">
<div class="position f12 c6 pull-left" style="background:none;padding-left:15px">
<span class="ico-system">系统:</span><span id="info" style="margin-left:10px;"> </span>&#12288;&#12288;<span id="running"></span>
<span class="ico-system">系统:</span><span id="info" style="margin-left:10px;">正在获取中...</span>&#12288;&#12288;<span id="running"></span>
</div>
<span class="pull-right f12 c6" style="line-height:52px; margin-right:15px">
<span id="btversion" onclick="index.open_log()" style="margin-right:10px">0.0.1</span>
<span id="toUpdate"><a class="btlink" href="javascript:index.check_update();">更新</a></span>
<span id="toUpdate"><a class="btlink" href="javascript:checkUpdate();">更新</a></span>
<span style="margin:0 10px"><a class="btlink" href="javascript:index.re_panel();">修复</a></span>
<span><a class="btlink" href="javascript:index.re_server();">重启</a></span>
</span>