Commit 2de02e02 authored by 李维's avatar 李维

修改上报成绩接口调用

parent 17061dc5
...@@ -363,8 +363,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -363,8 +363,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
gameOver() { gameOver() {
this.sendData().then(() => { this.sendData().then(() => {
})
this.scheduleOnce(() => {
pg.event.once('layer_ending_touch_replay', () => { pg.event.once('layer_ending_touch_replay', () => {
this.replay(); this.replay();
}) })
...@@ -372,7 +370,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -372,7 +370,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
middleLayer.saveGolds(this.score); // 保存金币数量;num 是获得金币的数量,数字类型; middleLayer.saveGolds(this.score); // 保存金币数量;num 是获得金币的数量,数字类型;
middleLayer.goNextPage(); // 跳转到下一页 middleLayer.goNextPage(); // 跳转到下一页
// pg.event.emit('layer_ending_show', { coin: this.score }) // pg.event.emit('layer_ending_show', { coin: this.score })
}, 0.5) })
} }
createLayer() { createLayer() {
......
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