2024-03-02 22:07:32 +08:00
|
|
|
package service
|
|
|
|
|
|
2024-04-18 17:52:18 +08:00
|
|
|
import (
|
2025-09-12 19:11:17 +08:00
|
|
|
"one-api/setting/operation_setting"
|
2025-09-13 15:24:48 +08:00
|
|
|
"one-api/setting/system_setting"
|
2024-04-18 17:52:18 +08:00
|
|
|
)
|
2024-03-02 22:07:32 +08:00
|
|
|
|
|
|
|
|
func GetCallbackAddress() string {
|
2025-09-12 19:11:17 +08:00
|
|
|
if operation_setting.CustomCallbackAddress == "" {
|
2025-09-13 15:24:48 +08:00
|
|
|
return system_setting.ServerAddress
|
2024-03-02 22:07:32 +08:00
|
|
|
}
|
2025-09-12 19:11:17 +08:00
|
|
|
return operation_setting.CustomCallbackAddress
|
2024-03-02 22:07:32 +08:00
|
|
|
}
|