2024-03-02 22:07:32 +08:00
|
|
|
package service
|
|
|
|
|
|
2024-04-18 17:52:18 +08:00
|
|
|
import (
|
2025-10-11 15:30:09 +08:00
|
|
|
"github.com/QuantumNous/new-api/setting/operation_setting"
|
|
|
|
|
"github.com/QuantumNous/new-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
|
|
|
}
|