Commit ba93daf7 authored by wildfirecode's avatar wildfirecode

1

parent b2527834
......@@ -2132,6 +2132,9 @@ export default class MainScene extends Scene {
Loading2.instace.show();
NetManager.ins.hc_submit((s, data) => {
if (s) {
const submitData = DataManager.ins.getData('hc_submit').data;
if(submitData.prizeType==1) {
//提交成功后捞结果
NetManager.ins.getPlugOrderStatus((s) => {
Loading2.instace.hide();
......@@ -2149,8 +2152,13 @@ export default class MainScene extends Scene {
PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL, { starCount: this.scoreProgress.starCount });
}
},
DataManager.ins.getData('hc_doJoin').data,
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