Commit ba93daf7 authored by wildfirecode's avatar wildfirecode

1

parent b2527834
......@@ -2132,25 +2132,33 @@ export default class MainScene extends Scene {
Loading2.instace.show();
NetManager.ins.hc_submit((s, data) => {
if (s) {
//提交成功后捞结果
NetManager.ins.getPlugOrderStatus((s) => {
Loading2.instace.hide();
playSound(SoundType.sucess);
if (s) {
const data = DataManager.ins.getData('getPlugOrderStatus');
//区分奖品
if (data.lottery) {
PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL, { starCount: this.scoreProgress.starCount });
const submitData = DataManager.ins.getData('hc_submit').data;
if(submitData.prizeType==1) {
//提交成功后捞结果
NetManager.ins.getPlugOrderStatus((s) => {
Loading2.instace.hide();
playSound(SoundType.sucess);
if (s) {
const data = DataManager.ins.getData('getPlugOrderStatus');
//区分奖品
if (data.lottery) {
PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL, { starCount: this.scoreProgress.starCount });
} else {
PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL, { starCount: this.scoreProgress.starCount });
}
} else {
//失败直接显示未中奖
PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL, { starCount: this.scoreProgress.starCount });
}
} else {
//失败直接显示未中奖
PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL, { starCount: this.scoreProgress.starCount });
}
},
DataManager.ins.getData('hc_doJoin').data,
() => { DataManager.ins.getData('getPlugOrderStatus').result == 0 })
},
submitData.prizeResponse.orderNum,
() => { DataManager.ins.getData('getPlugOrderStatus').result == 0 })
}else {
PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL, { starCount: this.scoreProgress.starCount });
}
} else {
Loading2.instace.hide();
if (!data) {
......
{
"success":true
"success": true,
"code": "0000000000",
"desc": "OK",
"timestamp": 1566556954843,
"data": {
"prizeType": 1,
"prizeResponse": {
"orderNum": "1078836456709200289",
"errorMsg": null,
"success": true
},
"stars": 3
}
}
\ No newline at end of file
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