feat: 前端不显示敏感信息

This commit is contained in:
CaIon committed 2024-04-18 17:52:18 +08:00
1 parent 6bc261f690
commit d0c04ce982
9 files changed
+129 -120

No files matched your search

+6 -3
View File
@@ -1,10 +1,13 @@
package service
import "one-api/common"
import (
"one-api/common"
"one-api/constant"
)
func GetCallbackAddress() string {
if common.CustomCallbackAddress == "" {
if constant.CustomCallbackAddress == "" {
return common.ServerAddress
}
return common.CustomCallbackAddress
return constant.CustomCallbackAddress
}