fix(features): 功能开放 - 兼容历史系统代理任务并修正前端格式
This commit is contained in:
1 parent
9920deb298
commit
e1428ef28d
4 files changed
+21
-6
No files matched your search
@@ -416,7 +416,10 @@ func taskInputUsesCustomChannel(input map[string]any) bool {
|
||||
channelID, _ := config["channelId"].(string)
|
||||
baseURL, _ := config["baseUrl"].(string)
|
||||
apiKey, _ := config["apiKey"].(string)
|
||||
return strings.TrimSpace(channelID) == "" && strings.TrimSpace(baseURL) != "" && strings.TrimSpace(apiKey) != ""
|
||||
if strings.TrimSpace(channelID) != "" || systemChannelIDFromBaseURL(baseURL) != "" {
|
||||
return false
|
||||
}
|
||||
return strings.TrimSpace(baseURL) != "" && strings.TrimSpace(apiKey) != ""
|
||||
}
|
||||
|
||||
func compactPersistedValue(value interface{}) interface{} {
|
||||
|
||||
Reference in new issue
Block a user