HttpUrl.ts 511 B

123456789101112131415161718192021222324252627
  1. /**
  2. * 请求地址
  3. *
  4. * @format
  5. */
  6. import {ConstValue} from './ConstValue'
  7. let base = 'http://192.168.31.100:8888/'
  8. class HttpUrl {
  9. static init(): void {
  10. if (CC_DEV) {
  11. base = 'http://192.168.31.100:8888/'
  12. } else if (ConstValue.DEBUG) {
  13. base = 'https://gameserver.black-art.cn/'
  14. } else {
  15. base = 'http://43.139.94.120:8888/'
  16. }
  17. }
  18. static get server(): string {
  19. return base + 'server_query_info'
  20. }
  21. }
  22. export {HttpUrl}