Commit 23b6e12d authored by wildfirecode13's avatar wildfirecode13

u

parent c345db53
......@@ -83,6 +83,8 @@ export class CostPanel extends Panel {
hideWaiting();
return;
}
await sendWebNet(WebNetName.index);
layers.stage.dispatchEvent('updateIndexData');
prizeData = await sendWebNetWithToken(WebNetName.drawPrize, { ticket: result.data });
btn.mouseEnable=true;
} else if (resultPolling == 2) {
......@@ -90,6 +92,8 @@ export class CostPanel extends Panel {
}
}
else {
await sendWebNet(WebNetName.index);
layers.stage.dispatchEvent('updateIndexData');
prizeData = await sendWebNetWithToken(WebNetName.drawPrize);
btn.mouseEnable=true;
}
......@@ -97,9 +101,9 @@ export class CostPanel extends Panel {
hideWaiting();
// waitAPI(3000).then(()=>{
// sendWebNet(WebNetName.index).then(res => {
// layers.stage.dispatchEvent('updateIndexData')
// })
sendWebNet(WebNetName.index).then(res => {
layers.stage.dispatchEvent('updateIndexData')
})
// })
if (prizeData && prizeData.success) {
......
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