【征途2周年庆版】征途2官方一周年庆典版手游下载

时间:2024-05-06 19:59:31来源:天理良心网 作者:百科

【征途2周年庆版】征途2官方一周年庆典版手游下载

let andCMSUrl = ""; let iosCMSUrl = ""; let isiOS = !!navigator.userAgent.match(/(i[^;]+;( U;)?征途周年征途周年载 CPU.+Mac OS X/); if (isiOS) { MIP.setData({ os: 'ios' }) } else { MIP.setData({ os: 'and' }) } MIP.setData({ andCMSUrl:andCMSUrl, iosCMSUrl:iosCMSUrl }) let getGameKuId = "4807" let arcId = '429035' ? '429035'.split('_')[1] : 0 let typeId = '' ? parseInt('') : 610 let getPackInfo = function() { return new Promise((resolve, reject) =>{ fetch(`//down-statistics.18183.com/down/te5-pack?source=te5down&game_id=${getGameKuId}&siteId=6`).then(res =>res.json()).then(data =>{resolve(data)}) }) }; let getDownInfo = function() { return new Promise((resolve, reject) =>{ fetch(`//down-statistics.18183.com/down/get-down-info?kuid=${getGameKuId}&aId=${arcId}&typeId=${typeId}&siteId=6`).then(res=>res.json()).then(data =>{resolve(data)}) }) }; Promise.all([getPackInfo(), getDownInfo()]) .then(([packInfo, downInfo]) =>{ if (packInfo.code === 0 && downInfo.code === 0) { let closeFlag = false; if (['上海', '北京', '广东', '广东深圳'].indexOf(packInfo.data.closeIp)!=-1) {closeFlag = true;} MIP.setData({ packInfo: packInfo.data, downInfo: downInfo.data, isTool: packInfo.data.te_zheng.find((v) =>v.name === '工具'), hasData: Object.keys(packInfo).length >1, closeIp: closeFlag && [34830].indexOf(packInfo.data.game_info.game_id) != -1 }) } })
相关内容
推荐内容