Commit 23b6e12d authored by wildfirecode13's avatar wildfirecode13

u

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