diff --git a/class/core/mw.py b/class/core/mw.py index 351a2c916d..89cb4a3e2f 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -1305,7 +1305,10 @@ def getClientIp(): def checkDomainPanel(): tmp = getHost() domain = readFile('data/bind_domain.pl') - port = readFile('data/port.pl').strip() + + port = 7200 + if os.path.exists('data/port.pl'): + port = readFile('data/port.pl').strip() scheme = 'http' diff --git a/route/static/app/public.js b/route/static/app/public.js index b73fe3d810..56fb178910 100755 --- a/route/static/app/public.js +++ b/route/static/app/public.js @@ -1351,58 +1351,57 @@ function execLog(){ * @param {String} dateFormat 返回的日期格式,默认为'H:i:s' */ function getSFM(seconds, dateFormat = 'H:i:s') { - var obj = {}; - obj.H = Number.parseInt(seconds / 3600); - obj.i = Number.parseInt((seconds - obj.H * 3600) / 60); - obj.s = Number.parseInt(seconds - obj.H * 3600 - obj.i * 60); - if (obj.H < 10) { - obj.H = '0' + obj.H; - } - if (obj.i < 10) { - obj.i = '0' + obj.i; - } - if (obj.s < 10) { - obj.s = '0' + obj.s; - } + + var obj = {}; + obj.H = Number.parseInt(seconds / 3600); + obj.i = Number.parseInt((seconds - obj.H * 3600) / 60); + obj.s = Number.parseInt(seconds - obj.H * 3600 - obj.i * 60); + if (obj.H < 10) { + obj.H = '0' + obj.H; + } + if (obj.i < 10) { + obj.i = '0' + obj.i; + } + if (obj.s < 10) { + obj.s = '0' + obj.s; + } - // 3.解析 - var rs = dateFormat.replace('H', obj.H).replace('i', obj.i).replace('s', obj.s); - return rs; + // 3.解析 + var rs = dateFormat.replace('H', obj.H).replace('i', obj.i).replace('s', obj.s); + return rs; } function remind(a){ a = a == undefined ? 1 : a; $.post("/task/list", "table=tasks&result=2,4,6,8&limit=10&p=" + a, function(g) { - // console.log(g); - var e = ""; + var e = ''; var f = false; var task_count = 0; for(var d = 0; d < g.data.length; d++) { - if(g.data[d].status != '1'){ - task_count++; - e += '