✨ feat: refactor environment variable initialization and introduce new constant types for API and context keys

This commit is contained in:
CaIon committed 2025-07-03 13:10:25 +08:00
1 parent 448184a250
commit f14f4eaf1a
43 files changed
+749 -576

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ func updateVideoTaskAll(ctx context.Context, platform constant.TaskPlatform, cha
}
func updateVideoSingleTask(ctx context.Context, adaptor channel.TaskAdaptor, channel *model.Channel, taskId string, taskM map[string]*model.Task) error {
baseURL := common.ChannelBaseURLs[channel.Type]
baseURL := constant.ChannelBaseURLs[channel.Type]
if channel.GetBaseURL() != "" {
baseURL = channel.GetBaseURL()
}