Commit 89eda68e by 穆启卓

广播的bug

parent c9c3d013
...@@ -158,9 +158,9 @@ ...@@ -158,9 +158,9 @@
getGameInfo(nonRefresh) { getGameInfo(nonRefresh) {
gameInfo().then(result => { gameInfo().then(result => {
console.log("result", result) console.log("result", result)
if (result.code == 0 && result.data.lenght > 0) { if (result.code == 0 && (result.data.fly_bot.length || result.data.fly_top.length)) {
let fly_bot = result.data.fly_bot let fly_bot = result.data.fly_bot
let fly_top = result.data.fly_top let fly_top = result.data.fly_top || []
let len = Math.max(fly_bot.length, fly_top.length) let len = Math.max(fly_bot.length, fly_top.length)
let list = [] let list = []
for (let i = 0; i < len; i++) { for (let i = 0; i < len; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment