Commit 5709b383 authored by 邱旭's avatar 邱旭

1

parent 21ad3789
......@@ -225,10 +225,10 @@ export default class MapScene extends Scene {
localStorage.setItem('taskCenter' + window['CFG'].consumerId, 'false');
let res = DataManager.ins.getData('hc_redBombBaseInfo');
let _t = res.data.redBombSwitchTime;
let _t = res.data.redBombSwitchTime || "";
if(res.data.remain > 0) {
let showBomb = localStorage.getItem('showBomb' + window['CFG'].consumerId);
if(showBomb != _t.toString()) {
if(showBomb != _t.toString() && _t != "") {
localStorage.setItem('showBomb' + window['CFG'].consumerId, _t.toString());
panels.push('BombTips2Panel');
}
......
......@@ -2,7 +2,7 @@
"code":"0000000000",
"data":{
"remain": 7,
"redBombSwitchTime": 77798963487234
"redBombSwitchTime": "77798963487234"
},
"desc":"OK",
"success":true,
......
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