fix(security): 系统渠道密钥 - 加密落库并在运行时解密

Co-authored-by: dyhhhhhqwer <1613203335@qq.com>
Original-PR: https://github.com/ddcat-ai/open-ai-canvas/pull/202
This commit is contained in:
dyhhhhhanddyhhhhhqwer authored and GitHub committed 2026-08-14 09:52:01 +08:00
1 parent 393b7f220f
commit 879a780167
3 files changed
+59 -4

No files matched your search

+1 -1
View File
@@ -572,7 +572,7 @@ func (s *Service) resolveProviderConfig(config providerConfig) (providerConfig,
}
return config, nil
}
channel, err := s.repo.SystemChannel(channelID)
channel, err := s.SystemChannel(channelID)
if err != nil {
return providerConfig{}, errors.New("系统渠道不存在或已停用")
}