Browse Source

补缺缺失的目标信息

master ver2.0.1
xyiege 3 months ago
parent
commit
499d7c3d5c
  1. 16
      aufs/core/sendzip.go

16
aufs/core/sendzip.go

@ -16,9 +16,11 @@ import (
// 压缩文件
type ZipBlock struct {
Basepath string // 基础路径
Curpath string // 当前路径
SelFile []string // 选中的文件
Basepath string // 基础路径
Curpath string // 当前路径
SelFile []string // 选中的文件
RemoteIp string // 远程主机地址,带端口
RemotePath string // 远程主机的存储路径
}
// 返回的结果结构
@ -48,9 +50,11 @@ func SendZip(w http.ResponseWriter, r *http.Request) {
}
// 构建
zipblock := ZipBlock{
Basepath: "/www/wwwroot",
Curpath: wtculpath[0],
SelFile: zipfarr,
Basepath: "/www/wwwroot",
Curpath: wtculpath[0],
SelFile: zipfarr,
RemoteIp: serip[0],
RemotePath: "/www/wwwroot/sync_zips",
}
// 从serip 切割出ip 和端口
splitip := strings.Split(serip[0], ":")

Loading…
Cancel
Save