Commit 4c33d1b6 authored by limingzhe's avatar limingzhe

fix: debug

parent eeb2f1a8
...@@ -1546,7 +1546,7 @@ ...@@ -1546,7 +1546,7 @@
}, },
"component": "", "component": "",
"_componentId": "60d81OE+nRLtoMukBLWZZu2", "_componentId": "60d81OE+nRLtoMukBLWZZu2",
"handler": "exitGame", "handler": "onBackBtnClick",
"customEventData": "" "customEventData": ""
}, },
{ {
......
...@@ -60,6 +60,10 @@ export default class NewClass extends middleLayerBase { ...@@ -60,6 +60,10 @@ export default class NewClass extends middleLayerBase {
backBtn.active = true; backBtn.active = true;
} }
onBackBtnClick() {
this.exitGame();
}
onHomeworkFinish(callBack, data = null) { onHomeworkFinish(callBack, data = null) {
if (!this.token) { if (!this.token) {
...@@ -81,6 +85,7 @@ export default class NewClass extends middleLayerBase { ...@@ -81,6 +85,7 @@ export default class NewClass extends middleLayerBase {
} }
exitGame(data = null) { exitGame(data = null) {
cc.game.removePersistRootNode(this.node); cc.game.removePersistRootNode(this.node);
if (this.token && data) { if (this.token && data) {
this.callNetworkApiPost(`api/dige/v1/user/report`, { this.callNetworkApiPost(`api/dige/v1/user/report`, {
......
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