// 不同环境的请求配置
const prodConfigs = {
// 开发环境
'xia.8688sdk.com': {
DOMAIN: '',
baseURL: "http://dev.surprisejk.8688sdk.com",
url:'http://dev.img01.8688sdk.com/',
Bucket: 'test-1302919045',
down_url: 'http://dev.down.8688sdk.com/',
},
// 测试环境
'dev.surprise.8688sdk.com': {
baseURL: "http://dev.surprisejk.8688sdk.com",
url:'http://dev.img01.8688sdk.com/',
Bucket: 'test-1302919045',
down_url: 'http://dev.down.8688sdk.com/',
},
// 正式环境
'yy.8688games.com': {
baseURL: "https://apiyy.8688games.com",
url:'https://img01.8688games.com/',
Bucket: 'td-1302919045',
down_url: 'https://down.8688games.com/',
},
}
const hostConfig = prodConfigs[location.hostname] || devConfig
export default hostConfig