From 0ebaeb99017f14358c73c039a0370aaaefc2e0a5 Mon Sep 17 00:00:00 2001 From: xc Date: Fri, 10 Oct 2025 13:53:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scagent/build.bat | 1 + scalib/main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scagent/build.bat b/scagent/build.bat index 0c2882c..9b82b54 100644 --- a/scagent/build.bat +++ b/scagent/build.bat @@ -1,3 +1,4 @@ +@echo off color 2f set GOOS=linux set GOARCH=amd64 diff --git a/scalib/main.go b/scalib/main.go index 646f14d..24a484e 100644 --- a/scalib/main.go +++ b/scalib/main.go @@ -134,7 +134,7 @@ func transferFile(c *UpFileClient, curPath string, uploadPath string) error { // 发送文件块 err = c.rpcClient.Call("UpFileService.SendFileChunk", FileChunk{ Data: buffer[:n], - FileName: uploadPath, + FileName: fileName, Offset: offset, IsLast: isLast, }, &reply)