Commit 616a83f6 authored by wjf's avatar wjf

l

parent 7f385f06
This diff is collapsed.
...@@ -21779,7 +21779,7 @@ var MapScene = (function (_super) { ...@@ -21779,7 +21779,7 @@ var MapScene = (function (_super) {
Tools_1.Tools.gameData.loginAddPower = false; Tools_1.Tools.gameData.loginAddPower = false;
} }
var openPrize = GTool_1.GTool.readCache('openPrize'); var openPrize = GTool_1.GTool.readCache('openPrize');
if (Tools_1.Tools.gameData.topAward.openPrizeStatus && openPrize !== 'true') { if (Tools_1.Tools.gameData.topAward && Tools_1.Tools.gameData.topAward.openPrizeStatus && openPrize !== 'true') {
GTool_1.GTool.writeCache('openPrize', 'true'); GTool_1.GTool.writeCache('openPrize', 'true');
if (Tools_1.Tools.gameData.topAward.prize && Tools_1.Tools.gameData.topAward.prize._id) { if (Tools_1.Tools.gameData.topAward.prize && Tools_1.Tools.gameData.topAward.prize._id) {
ctrls_1.showPanel(PrizePanel_1.PrizePanel, JSON.parse(JSON.stringify(Tools_1.Tools.gameData.topAward.prize))); ctrls_1.showPanel(PrizePanel_1.PrizePanel, JSON.parse(JSON.stringify(Tools_1.Tools.gameData.topAward.prize)));
This diff is collapsed.
...@@ -60,7 +60,7 @@ export class MapScene extends Scene { ...@@ -60,7 +60,7 @@ export class MapScene extends Scene {
} }
let openPrize = GTool.readCache('openPrize'); let openPrize = GTool.readCache('openPrize');
if (Tools.gameData.topAward.openPrizeStatus && openPrize !== 'true') { // 开奖了,并且没弹过 if (Tools.gameData.topAward && Tools.gameData.topAward.openPrizeStatus && openPrize !== 'true') { // 开奖了,并且没弹过
GTool.writeCache('openPrize', 'true'); GTool.writeCache('openPrize', 'true');
if (Tools.gameData.topAward.prize && Tools.gameData.topAward.prize._id) { // 有奖 if (Tools.gameData.topAward.prize && Tools.gameData.topAward.prize._id) { // 有奖
showPanel(PrizePanel, JSON.parse(JSON.stringify(Tools.gameData.topAward.prize))); showPanel(PrizePanel, JSON.parse(JSON.stringify(Tools.gameData.topAward.prize)));
......
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