diff --git a/class/core/config_api.py b/class/core/config_api.py index be5ae448a..980fab20e 100755 --- a/class/core/config_api.py +++ b/class/core/config_api.py @@ -15,7 +15,7 @@ from flask import request class config_api: - __version = '0.9.10' + __version = '0.9.10.1' def __init__(self): pass diff --git a/plugins/webstats/info.json b/plugins/webstats/info.json index 4ef7e3e01..b710aa1d4 100755 --- a/plugins/webstats/info.json +++ b/plugins/webstats/info.json @@ -1,6 +1,6 @@ { "sort": 7, - "ps": "[DEV]网站统计报表[此插件开发完成后,需要反馈问题,不当小白鼠,慎用!]", + "ps": "[DEV]网站统计报表[此插件-需要小白鼠反馈问题,慎用!]", "name": "webstats", "title": "网站统计", "shell": "install.sh", diff --git a/plugins/webstats/js/setting.js b/plugins/webstats/js/setting.js index d775379be..b1343fd46 100644 --- a/plugins/webstats/js/setting.js +++ b/plugins/webstats/js/setting.js @@ -244,6 +244,25 @@ wsPost('get_global_conf', '' ,{}, function(rdata){ wsGlobalSetting(); }); + + $('#setAll').click(function(){ + var args = "name=webstats&func=reload"; + layer.confirm('您真的要同步所有站点吗?', {icon:3,closeBtn: 2}, function() { + var e = layer.msg('正在同步,请稍候...', {icon: 16,time: 0}); + $.post("/plugins/run", args, function(g) { + layer.close(e); + if( g.status && g.data != 'ok' ) { + layer.msg(g.data, {icon: 2,time: 3000,shade: 0.3,shadeClose: true}); + } else { + layer.msg('同步成功!', {icon: 1,time: 0}); + } + },'json').error(function() { + layer.close(e); + layer.msg('操作异常!', {icon: 1}); + }); + }) + }); + }); ///////////////////////////////////////////////