Commit bef7ac56 authored by wildfirecode's avatar wildfirecode

1

parent b6fcd9a7
...@@ -298,8 +298,10 @@ export default class MapScene extends Scene { ...@@ -298,8 +298,10 @@ export default class MapScene extends Scene {
const data = getHomeData(); const data = getHomeData();
if (data.canReceiveTreasureBoxNum > 0) { if (data.canReceiveTreasureBoxNum > 0) {
this['boxLayer'].visible = true; this['boxLayer'].visible = true;
this._mc = await loadSvga(getResPath() + 'resource/assets/svgas/box.svga', this['boxani']); if(!this._mc)
this._mc = await loadSvga(getResPath() + 'resource/assets/svgas/box.svga', this['boxani']);
this._mc.stop(); this._mc.stop();
this._mc.gotoAndStop(1);
this._mc.anchorOffsetX = 750/2; this._mc.anchorOffsetX = 750/2;
this._mc.anchorOffsetY = 500+50+30; this._mc.anchorOffsetY = 500+50+30;
this._mc.x=750/2; this._mc.x=750/2;
......
{ {"success":true,"code":"0000000000","desc":"OK","timestamp":1567567005110,"data":{"wealth":30,"totalStars":32,"levels":[{"levelNum":1,"maxScore":42120,"stars":3},{"levelNum":2,"maxScore":15130,"stars":3},{"levelNum":3,"maxScore":25840,"stars":3},{"levelNum":4,"maxScore":32830,"stars":3},{"levelNum":5,"maxScore":19050,"stars":3},{"levelNum":6,"maxScore":37200,"stars":3},{"levelNum":7,"maxScore":54670,"stars":3},{"levelNum":8,"maxScore":14180,"stars":2},{"levelNum":9,"maxScore":80250,"stars":3},{"levelNum":10,"maxScore":23690,"stars":3},{"levelNum":11,"maxScore":13130,"stars":3}],"remainProp":[],"remainEnargy":5,"askForEnergy":false,"canReceiveTreasureBoxNum":2,"nextRangeStarsNum":10}}
"success": true, \ No newline at end of file
"code": "0000000000",
"desc": "OK",
"timestamp": 1566885811031,
"data": {
"wealth": 7960,
"totalStars": 145,
"levels": [
],
"remainProp": [
{
"type": 2,
"num": 0
},
{
"type": 3,
"num": 0
},
{
"type": 4,
"num": 0
}
],
"remainEnargy": 10,
"askForEnergy": false,
"canReceiveTreasureBoxNum": 10,
"nextRangeStarsNum": 150
}
}
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"desc": "OK", "desc": "OK",
"timestamp": 1566558623308, "timestamp": 1566558623308,
"data": { "data": {
"canReceiveTreasureBoxNum": 0, "canReceiveTreasureBoxNum": 99,
"nextRangeStarsNum": 25, "nextRangeStarsNum": 25,
"orderNum": "1078836456709300393", "orderNum": "1078836456709300393",
"totalStars": 12 "totalStars": 12
......
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