(hash, path string)
| 126 | } |
| 127 | |
| 128 | func (user *SixUser) AddOfflineTask(hash, path string) error { |
| 129 | info := gjson.Parse(user.Client.PostJsonObject("https://api.2dland.cn/v3/offline/add", models.B{"task": []models.B{{"hash": hash}}, "savePath": path})) |
| 130 | if info.Get("successCount").Int() != 1 { |
| 131 | return errors.New("unsuccessful") |
| 132 | } |
| 133 | return nil |
| 134 | } |
| 135 | |
| 136 | func (user *SixUser) CreateUploadTree(remote string, files []string) map[string]string { |
| 137 | res := make(map[string]string) |