Commit f4540731 authored by kai's avatar kai

fix: 模板数据上报

parent e0c0b65b
......@@ -92,6 +92,14 @@ export default class NewClass extends middleLayerBase {
exitGame(data = null) {
cc.game.removePersistRootNode(this.node);
if(!data) {
const tpl = cc.find('Canvas')?.getComponent(this.courseItem.template_name);
if (tpl) {
data = tpl['data'];
}
}
if (this.token && data) {
this.callNetworkApiPost(`api/dige/v1/user/report`, {
token: this.token,
......
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