diff --git a/fssc/fssc b/fssc/fssc index 3be498e..1f7c8a7 100644 Binary files a/fssc/fssc and b/fssc/fssc differ diff --git a/fssc/internal/handler/webconsole.go b/fssc/internal/handler/webconsole.go index 4f22f38..3fb73db 100644 --- a/fssc/internal/handler/webconsole.go +++ b/fssc/internal/handler/webconsole.go @@ -33,6 +33,9 @@ func WebConsole(w http.ResponseWriter, r *http.Request) { abupath = filepath.Join(abupath, abfname) } + // 转成unix 风格 + abupath = filepath.ToSlash(abupath) + // upath := strings.TrimSuffix(abupath, "console") // serve download page for send diff --git a/fssc/web/wbconsole.tmpl b/fssc/web/wbconsole.tmpl index 2d2d4a7..3b0fea5 100644 --- a/fssc/web/wbconsole.tmpl +++ b/fssc/web/wbconsole.tmpl @@ -192,7 +192,7 @@ // 获取目标服务器的信息 var gescinfo=function(scip){ // 客户端的状态地址 - var url="http://"+scip+":9099/sc?p="+urlpath; + var url="http://"+scip+":9099/sc?p="+urlpath.replace("/\\/g","\/"); // var html=""; $.getJSON(url,function(res){ @@ -231,7 +231,6 @@ //同步文件 $(".gsbtn").on("click",function(){ - alert("dafds"); var ff = $(this).attr("fid"); var fpa=$(this).attr("fpa"); // build post body