(ctx context.Context, taskChannelM map[int][]string, taskM map[string]*model.Task)
| 83 | } |
| 84 | |
| 85 | func UpdateSunoTaskAll(ctx context.Context, taskChannelM map[int][]string, taskM map[string]*model.Task) error { |
| 86 | for channelId, taskIds := range taskChannelM { |
| 87 | err := updateSunoTaskAll(ctx, channelId, taskIds, taskM) |
| 88 | if err != nil { |
| 89 | common.LogError(ctx, fmt.Sprintf("渠道 #%d 更新异步任务失败: %d", channelId, err.Error())) |
| 90 | } |
| 91 | } |
| 92 | return nil |
| 93 | } |
| 94 | |
| 95 | func updateSunoTaskAll(ctx context.Context, channelId int, taskIds []string, taskM map[string]*model.Task) error { |
| 96 | common.LogInfo(ctx, fmt.Sprintf("渠道 #%d 未完成的任务有: %d", channelId, len(taskIds))) |
no test coverage detected