mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
fastdfs ok
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<p class="bgw" onclick="pluginService('go-fastdfs');">服务</p>
|
||||
<p onclick="pluginInitD('go-fastdfs');">自启动</p>
|
||||
<p onclick="pluginConfig('go-fastdfs');">配置文件</p>
|
||||
<p onclick="gfConfigSet()">配置修改</p>
|
||||
<p onclick="gfConfigSet()">重要配置查看</p>
|
||||
<p onclick="pluginLogs('go-fastdfs','','run_log');">运行日志</p>
|
||||
<p onclick="pluginLogs('go-fastdfs','','breakpoint_log');">断点日志</p>
|
||||
<p onclick="pRead()">说明</p>
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -75,25 +75,18 @@ function gfConfigSet(){
|
||||
}
|
||||
var html = '<style>.conf_p p{margin-bottom: 2px}</style><div class="conf_p" style="margin-bottom:0">\
|
||||
' + mlist + '\
|
||||
<div style="margin-top:10px; padding-right:15px" class="text-right">\
|
||||
<button class="btn btn-success btn-sm mr5" onclick="gogsSetConfig()">刷新</button>\
|
||||
<button class="btn btn-success btn-sm" onclick="submitGogsConf()">保存</button></div>\
|
||||
<div style="margin-top:10px; padding-right:15px" class="text-right">\
|
||||
</div>';
|
||||
$(".soft-man-con").html(html);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function pRead(){
|
||||
var readme = '<ul class="help-info-text c7">';
|
||||
readme += '<li>使用默认solr端口,如有需要自行修改</li>';
|
||||
readme += '<li>如果开启防火墙,需要放行solr设置的端口,例如(8983)</li>';
|
||||
readme += '<li>数据源设置好后,需要在managed-schema中同时设置</li>';
|
||||
readme += '<li><a target="_blank" href="https://github.com/midoks/mdserver-web/wiki/插件管理%5Bsolr使用说明%5D">wiki说明</a></li>';
|
||||
readme += '<li>官方地址<a target="_blank" href="https://github.com/sjqzhang/go-fastdfs">查看</a></li>';
|
||||
readme += '<li>如果开启防火墙,需要放行端口,例如(8080)</li>';
|
||||
readme += '<li>要自行配置openresty</li>';
|
||||
readme += '</ul>';
|
||||
|
||||
$('.soft-man-con').html(readme);
|
||||
|
||||
Reference in New Issue
Block a user