Commit 40e61fc4 authored by wildfirecode's avatar wildfirecode

1

parent 6ea681fb
......@@ -122,10 +122,10 @@ export default class Turntable extends Panel {
console.warn(error)
}
NetManager.ins.hc_turnableDojoin((success, res) => {
NetManager.ins.hc_home(() => {
SceneCtrl.instance.updateScene();
this['nums'].text = `当前可用元宝:${getHomeData().wealth}`;
}, window['collectRuleId']);
// NetManager.ins.hc_home(() => {
// SceneCtrl.instance.updateScene();
// this['nums'].text = `当前可用元宝:${getHomeData().wealth}`;
// }, window['collectRuleId']);
Loading.instace.hide();
// if(!success) {
// return;
......@@ -144,6 +144,10 @@ export default class Turntable extends Panel {
id = data.option.categoryType;
}
this.rotateByPrize(id, () => {
NetManager.ins.hc_home(() => {
SceneCtrl.instance.updateScene();
this['nums'].text = `当前可用元宝:${getHomeData().wealth}`;
}, window['collectRuleId']);
if(!success) {
switch(true) {
case (code == "600051"): // 元宝不足
......
{"success":true,"code":"0000000000","desc":"OK","timestamp":1573183122904,"data":{"wealth":40,"totalStars":42,"levels":[{"levelNum":1,"maxScore":99999,"stars":3},{"levelNum":2,"maxScore":99999,"stars":3},{"levelNum":3,"maxScore":12030,"stars":3},{"levelNum":4,"maxScore":17710,"stars":3},{"levelNum":5,"maxScore":16260,"stars":3},{"levelNum":6,"maxScore":22110,"stars":2},{"levelNum":7,"maxScore":17740,"stars":2},{"levelNum":8,"maxScore":19950,"stars":3},{"levelNum":9,"maxScore":31360,"stars":3},{"levelNum":10,"maxScore":26470,"stars":3},{"levelNum":11,"maxScore":59190,"stars":3},{"levelNum":12,"maxScore":37400,"stars":3},{"levelNum":13,"maxScore":25870,"stars":2},{"levelNum":14,"maxScore":49810,"stars":3},{"levelNum":15,"maxScore":31930,"stars":3}],"remainProp":[{"type":3,"num":1}],"remainEnargy":5,"askForEnergy":0,"canReceiveTreasureBoxNum":1,"nextRangeStarsNum":30,"isGetAllTreasureBox":false,"refectionCountdown":0}}
\ No newline at end of file
{
"success": true,
"code": "0000000000",
"desc": "OK",
"timestamp": 1573183122904,
"data": {
"wealth": 8888,
"totalStars": 42,
"levels": [
{
"levelNum": 1,
"maxScore": 99999,
"stars": 3
},
{
"levelNum": 2,
"maxScore": 99999,
"stars": 3
},
{
"levelNum": 3,
"maxScore": 12030,
"stars": 3
},
{
"levelNum": 4,
"maxScore": 17710,
"stars": 3
},
{
"levelNum": 5,
"maxScore": 16260,
"stars": 3
},
{
"levelNum": 6,
"maxScore": 22110,
"stars": 2
},
{
"levelNum": 7,
"maxScore": 17740,
"stars": 2
},
{
"levelNum": 8,
"maxScore": 19950,
"stars": 3
},
{
"levelNum": 9,
"maxScore": 31360,
"stars": 3
},
{
"levelNum": 10,
"maxScore": 26470,
"stars": 3
},
{
"levelNum": 11,
"maxScore": 59190,
"stars": 3
},
{
"levelNum": 12,
"maxScore": 37400,
"stars": 3
},
{
"levelNum": 13,
"maxScore": 25870,
"stars": 2
},
{
"levelNum": 14,
"maxScore": 49810,
"stars": 3
},
{
"levelNum": 15,
"maxScore": 31930,
"stars": 3
}
],
"remainProp": [
{
"type": 3,
"num": 1
}
],
"remainEnargy": 5,
"askForEnergy": 0,
"canReceiveTreasureBoxNum": 1,
"nextRangeStarsNum": 30,
"isGetAllTreasureBox": false,
"refectionCountdown": 0
}
}
\ No newline at end of file
......@@ -113,7 +113,7 @@
],
"id": null
},
"nextTimeNeedCoin": 8888
"nextTimeNeedCoin": 1
},
"success": true,
"desc": "OK",
......
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