Commit 880b6aa1 authored by 李维's avatar 李维

修改数据上报接口逻辑

parent e117ba20
......@@ -129,12 +129,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
// pg.event.emit("layer_ending_show", { coin: Game.getIns().len * 3 });
const midd = cc.find('middleLayer');
if (!midd) return this.log("no middleLayer");
this.sendData(Game.getIns().len * 3).then(() => { })
this.scheduleOnce(() => {
this.sendData(Game.getIns().len * 3).then(() => {
let middleLayer = midd.getComponent('middleLayer');
middleLayer.saveGolds(Game.getIns().len * 3); // 保存金币数量;num 是获得金币的数量,数字类型;
middleLayer.goNextPage(); // 跳转到下一页
}, 0.1)
})
}
......
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