Browse Source

修改

master
453530270@qq.com 2 years ago
parent
commit
33b421ac3c
  1. BIN
      xgfs/files/BIU_20240523_172749.zip
  2. 6
      xgfs/internal/handler/handler.go
  3. BIN
      xgfs/xtfs

BIN
xgfs/files/BIU_20240523_172749.zip

Binary file not shown.

6
xgfs/internal/handler/handler.go

@ -127,6 +127,9 @@ func ReceiveHandler(w http.ResponseWriter, r *http.Request) {
default: default:
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed) http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
} }
// 输出接收结果
fmt.Fprintf(w, "接收成功,并已经完成解压缩")
} }
// 文件服务 // 文件服务
@ -213,7 +216,8 @@ func SendZip(w http.ResponseWriter, r *http.Request) {
fmt.Printf("Send file to %s error: %s\n", remoteAddr, err) fmt.Printf("Send file to %s error: %s\n", remoteAddr, err)
} }
}() }()
// 页面上显示
fmt.Fprintf(w, "File:%s,been sent successfully.", zpFileName)
} else { } else {
fmt.Println("archive is not exist!!!") fmt.Println("archive is not exist!!!")
} }

BIN
xgfs/xtfs

Binary file not shown.
Loading…
Cancel
Save