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)