mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-11 01:39:26 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e6b9fd8a66 | ||
|
|
350a1e8b61 | ||
|
|
b904ef4e8a | ||
|
|
d64040abb7 |
@@ -614,7 +614,6 @@ class system_api:
|
||||
upAddr = 'https://raw.githubusercontent.com/midoks/mdserver-web/master/version/info.json'
|
||||
try:
|
||||
version = public.httpGet(upAddr)
|
||||
print version
|
||||
version = json.loads(version)
|
||||
return version[0]
|
||||
except Exception as e:
|
||||
|
||||
@@ -561,7 +561,7 @@ function updateVersion(version) {
|
||||
});
|
||||
}
|
||||
|
||||
function pluginService(pname,pfunc, callback){
|
||||
function pluginIndexService(pname,pfunc, callback){
|
||||
$.post('/plugins/run', {name:'openresty', func:pfunc}, function(data) {
|
||||
if (!data.status){
|
||||
layer.msg(data.msg,{icon:0,time:2000,shade: [0.3, '#000']});
|
||||
@@ -631,10 +631,10 @@ function reBoot() {
|
||||
var body = '<div class="SafeRestartCode pd15" style="line-height:26px"></div>';
|
||||
$(".bt-window-restart").html(body);
|
||||
$(".SafeRestartCode").append("<p>正在停止Web服务</p>");
|
||||
pluginService('openresty', 'stop', function (r1) {
|
||||
pluginIndexService('openresty', 'stop', function (r1) {
|
||||
$(".SafeRestartCode p").addClass('c9');
|
||||
$(".SafeRestartCode").append("<p>正在停止MySQL服务...</p>");
|
||||
pluginService('mysql','stop', function (r2) {
|
||||
pluginIndexService('mysql','stop', function (r2) {
|
||||
$(".SafeRestartCode p").addClass('c9');
|
||||
$(".SafeRestartCode").append("<p>开始重启服务器...</p>");
|
||||
$.post('/system/restart_server', '',function (rdata) {
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
[
|
||||
{
|
||||
"version": "0.0.6",
|
||||
"content": "1.修复重复js方法",
|
||||
"path": "https://github.com//midoks/mdserver-web/archive/0.0.6.zip"
|
||||
},
|
||||
{
|
||||
"version": "0.0.5",
|
||||
"content": "1.基本功能OK<br/>,2.网站HTTPS功能验证!",
|
||||
"path": "https://github.com//midoks/mdserver-web/archive/0.0.5.zip"
|
||||
},
|
||||
{
|
||||
"version": "0.0.1.2",
|
||||
"content": "1.项目初建!<br/>2.面板更新功能!",
|
||||
|
||||
Reference in New Issue
Block a user