Commit 9592e877 authored by 邱旭's avatar 邱旭

1

parent ebbe3280
...@@ -225,12 +225,14 @@ export default class MapScene extends Scene { ...@@ -225,12 +225,14 @@ export default class MapScene extends Scene {
localStorage.setItem('taskCenter' + window['CFG'].consumerId, 'false'); localStorage.setItem('taskCenter' + window['CFG'].consumerId, 'false');
let res = DataManager.ins.getData('hc_redBombBaseInfo'); let res = DataManager.ins.getData('hc_redBombBaseInfo');
let _t = res.data.redBombSwitchTime || ""; if(res && res.data){
if(res.data.remain > 0) { let _t = res.data.redBombSwitchTime || "";
let showBomb = localStorage.getItem('showBomb' + window['CFG'].consumerId); if(res.data.remain > 0) {
if(showBomb != _t.toString() && _t != "") { let showBomb = localStorage.getItem('showBomb' + window['CFG'].consumerId);
localStorage.setItem('showBomb' + window['CFG'].consumerId, _t.toString()); if(showBomb != _t.toString() && _t != "") {
panels.push('BombTips2Panel'); localStorage.setItem('showBomb' + window['CFG'].consumerId, _t.toString());
panels.push('BombTips2Panel');
}
} }
} }
......
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