feat: 前端不显示敏感信息

This commit is contained in:
CaIon
2024-04-18 17:52:18 +08:00
parent 6e54f01435
commit 818bd824da
9 changed files with 129 additions and 120 deletions

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
}