/** * 请求地址 * * @format */ import {ConstValue} from './ConstValue' let base = 'http://192.168.31.100:8888/' class HttpUrl { static init(): void { if (CC_DEV) { base = 'http://192.168.31.100:8888/' } else if (ConstValue.DEBUG) { base = 'https://gameserver-b22-dev.black-art.cn/' } else { base = 'https://gameserver-b22.black-art.cn/' } } static get server(): string { return base + 'server_query_info' } } export {HttpUrl}