diff --git a/src/pages/gameInfo.wpy b/src/pages/gameInfo.wpy index f385f2f..41bd20b 100644 --- a/src/pages/gameInfo.wpy +++ b/src/pages/gameInfo.wpy @@ -228,9 +228,9 @@ let res = await http.post(`/api/emulated/game_info`, { gid: this.id }); if (res.errcode === 0) { this.record = res.record; - this.record.icon = `${g.cdnBase}${this.record.gid}/1.png`; + this.record.icon = `${g.cdnBase}images/${this.record.gid}/1.png`; for(let i = 0; i < this.record.pic_count; i ++) { - this.imageList.push(`${g.cdnBase}${this.record.gid}/${i}.png`); + this.imageList.push(`${g.cdnBase}images/${this.record.gid}/${i+1}.png`); } if (this.record.type <= g.gameTypes.length) { this.typeStr = g.gameTypes[this.record.type - 1]; diff --git a/src/pages/index.wpy b/src/pages/index.wpy index 496d497..ace3002 100644 --- a/src/pages/index.wpy +++ b/src/pages/index.wpy @@ -204,7 +204,7 @@ try { let res = await http.post('/api/emulated/recent_games'); for(let obj of res.records) { - obj.icon = `${global.cdnBase}${obj.gid}/1.png`; + obj.icon = `${global.cdnBase}images/${obj.gid}/1.png`; } this.recent_game_list = res.records; this.showRecent = this.recent_game_list.length > 0; @@ -217,7 +217,7 @@ try { let res = await http.post('/api/emulated/my_games'); for(let obj of res.records) { - obj.icon = `${global.cdnBase}${obj.gid}/1.png`; + obj.icon = `${global.cdnBase}images/${obj.gid}/1.png`; } this.my_game_list = res.records; this.showMyGame = this.my_game_list.length > 0; @@ -272,7 +272,7 @@ self.current += 10; for (let obj of res.records) { (obj.open) && (obj.owned = true); - obj.icon = `${global.cdnBase}${obj.gid}/1.png`; + obj.icon = `${global.cdnBase}images/${obj.gid}/1.png`; self.records.push(obj); } self.loading = false;