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