Commit 1534d692 authored by liujiangnan's avatar liujiangnan

feat: 调试处理

parent 9db5ae33
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
"ver": "1.2.9", "ver": "1.2.9",
"uuid": "f2080b9e-65f4-4a10-b460-eb81064a9d76", "uuid": "f2080b9e-65f4-4a10-b460-eb81064a9d76",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"autoReleaseAssets": true, "autoReleaseAssets": false,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
...@@ -33,7 +33,7 @@ export default class NewClass extends middleLayerBase { ...@@ -33,7 +33,7 @@ export default class NewClass extends middleLayerBase {
console.log("===jsonStr===", jsonStr); console.log("===jsonStr===", jsonStr);
const { bundleInfo } = JSON.parse(jsonStr); const { bundleInfo } = JSON.parse(jsonStr);
this.API_BASE = bundleInfo.base_url; this.API_BASE = bundleInfo.base_url || this.API_BASE;
if (this.API_BASE.indexOf("staging-")<0) { if (this.API_BASE.indexOf("staging-")<0) {
this.DOMAIN = this.DOMAIN.replace("staging-", ""); this.DOMAIN = this.DOMAIN.replace("staging-", "");
} }
...@@ -79,7 +79,10 @@ export default class NewClass extends middleLayerBase { ...@@ -79,7 +79,10 @@ export default class NewClass extends middleLayerBase {
template_name: this.courseItem.template_name, template_name: this.courseItem.template_name,
study_duration: Date.now() - this.courseOpenTimeStamp, study_duration: Date.now() - this.courseOpenTimeStamp,
result: JSON.stringify(data), result: JSON.stringify(data),
}, () => { }, (res) => {
console.log('-----------------');
console.log(res);
console.log('-----------------');
cc.director.loadScene("emptyScene", () => { cc.director.loadScene("emptyScene", () => {
this.callNativeFunction({ name: "exit", value: "" }); this.callNativeFunction({ name: "exit", value: "" });
}); });
......
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