From 1036347286069e332c1ab4a050023254165fcebd Mon Sep 17 00:00:00 2001 From: xc Date: Mon, 8 Sep 2025 19:24:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aufs/core/AuFile.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/aufs/core/AuFile.go b/aufs/core/AuFile.go index bb7e566..f351729 100644 --- a/aufs/core/AuFile.go +++ b/aufs/core/AuFile.go @@ -25,12 +25,13 @@ func Flist(w http.ResponseWriter, r *http.Request) { sport := r.URL.Query().Get("sport") // sport = util.Base64dec(sport) - fmt.Printf("scip:%v", srcip) - fmt.Printf("wdir is %s\n", wdir) + // fmt.Printf("scip:%v", srcip) + // fmt.Printf("wdir is %s\n", wdir) // 获取需要监听的服务器 // sc := r.Form.Get("srcip") // 测试JSONRPC service := fmt.Sprintf("%v:%v", srcip, sport) + // fmt.Printf("service:%v", service) // service := "192.168.66.92:9098" client, err := jsonrpc.Dial("tcp", service) if err != nil { @@ -38,8 +39,8 @@ func Flist(w http.ResponseWriter, r *http.Request) { return } // 基础目录名称 - basepath := "/www/wwwroot/" - + basepath := "/www/wwwroot" + basepath = fmt.Sprintf("%v%v", basepath, wdir) // 调用远程方法 var reply string var args = Args{basepath, "dir"}