Commit 8e0ded46 authored by shunx 马's avatar shunx 马

提交轮询

parent 07e7f310
......@@ -120,10 +120,10 @@
"sendCount": 1
}
],
"surplusCount": 11,
"surplusCount": 1,
"credits": 111111,
"needCredits": 110,
"type": 1,
"type": 2,
"vip":1
},
"message": null,
......
......@@ -720,5 +720,5 @@ export const ResJson = {
}
}
],
"path": "https://yun.duiba.com.cn/db_games/activity/template/1629104340/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/template/1629264939/resource/"
}
\ No newline at end of file
......@@ -62,7 +62,7 @@ export class CostPanel extends Panel {
params.credits = indexResult.data.needCredits;
result = await sendWebNet(WebNetName.getCreditCost, params);
resultPolling = await polling(
(rsp) => rsp.code == "0000000000",
(rsp) => rsp.data == 1,
`/projectx/${projectId}/credits/queryStatus.do`,
{
ticketNum: result.data
......
......@@ -42,7 +42,6 @@ export class IndexScene extends Scene {
svgaLayer.addChild(svga);
const svga2 = new FYGE.MovieClip(RES.getRes('首页元素循环下-输出.svga'));
svgaLayer.addChild(svga2);
// window['q']=svga2
svga2.y=1320;
sendLog("exposure",9);
}
......@@ -176,6 +175,7 @@ export class IndexScene extends Scene {
shareButton.visible = false;
}
} else {
if (result.data.surplusCount > 0) {
needCredits.text = '免费拆盒1次';
reDegree.text = `${result.data.surplusCount}`;
......
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