25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
324 B

  1. package service
  2. import (
  3. "github.com/QuantumNous/new-api/setting/operation_setting"
  4. "github.com/QuantumNous/new-api/setting/system_setting"
  5. )
  6. func GetCallbackAddress() string {
  7. if operation_setting.CustomCallbackAddress == "" {
  8. return system_setting.ServerAddress
  9. }
  10. return operation_setting.CustomCallbackAddress
  11. }