diff --git a/plugins/go-fastdfs/index.html b/plugins/go-fastdfs/index.html index 354561bb1..949eb783b 100755 --- a/plugins/go-fastdfs/index.html +++ b/plugins/go-fastdfs/index.html @@ -4,7 +4,7 @@

服务

自启动

配置文件

-

配置修改

+

重要配置查看

运行日志

断点日志

说明

diff --git a/plugins/go-fastdfs/index.py b/plugins/go-fastdfs/index.py index a5760659d..c2b13e776 100755 --- a/plugins/go-fastdfs/index.py +++ b/plugins/go-fastdfs/index.py @@ -182,16 +182,17 @@ def gfConfSet(): {'name': 'enable_cross_origin', 'type': 0, 'ps': '是否开启跨站访问'}, {'name': 'enable_tus', 'type': 0, 'ps': '是否开启断点续传'} ] - data = public.readFile(gfConf()) - result = json.loads(data) + file = public.readFile(gfConf()) + data = json.loads(file) - ret = [] + result = [] for g in gets: - if g['name'] in result: - g['value'] = result[g['name']] - ret.append(g) + if g['name'] in data: + g['value'] = data[g['name']] + result.append(g) + + return public.getJson(result) - return public.getJson(ret) if __name__ == "__main__": func = sys.argv[1] diff --git a/plugins/go-fastdfs/js/fastdfs.js b/plugins/go-fastdfs/js/fastdfs.js index c62ce9a8b..a7b311bf9 100755 --- a/plugins/go-fastdfs/js/fastdfs.js +++ b/plugins/go-fastdfs/js/fastdfs.js @@ -75,25 +75,18 @@ function gfConfigSet(){ } var html = '
\ ' + mlist + '\ -
\ - \ -
\ +
\
'; $(".soft-man-con").html(html); }); } - - - - function pRead(){ var readme = ''; $('.soft-man-con').html(readme);