mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2026-02-27 08:44:24 +08:00
优化前后端代码,将公共方法抽取到util类,修改客户端加密方式
This commit is contained in:
@@ -280,11 +280,11 @@ export function getHeaders(ignoreHeaders: boolean = false) {
|
||||
? accessStore.awsRegion &&
|
||||
accessStore.awsAccessKey &&
|
||||
accessStore.awsSecretKey
|
||||
? encrypt(accessStore.awsRegion) +
|
||||
? encrypt(accessStore.awsRegion, accessStore.encryptionKey) +
|
||||
":" +
|
||||
encrypt(accessStore.awsAccessKey) +
|
||||
encrypt(accessStore.awsAccessKey, accessStore.encryptionKey) +
|
||||
":" +
|
||||
encrypt(accessStore.awsSecretKey)
|
||||
encrypt(accessStore.awsSecretKey, accessStore.encryptionKey)
|
||||
: ""
|
||||
: accessStore.openaiApiKey;
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user