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:
1 parent
393b7f220f
commit
879a780167
3 files changed
+59
-4
No files matched your search
@@ -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("系统渠道不存在或已停用")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user