Commit 79fc0eaf authored by limingzhe's avatar limingzhe

fix: debug

parent 398c0f3a
...@@ -135,11 +135,13 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -135,11 +135,13 @@ export abstract class middleLayerBase extends cc.Component {
} }
this.IS_BUNDLE_LOADING = true; this.IS_BUNDLE_LOADING = true;
console.log(' in loadOnlineBundleNew') console.log(' in loadOnlineBundleNew')
this.callNetworkApiGetNew(`api/template/v2/${bundleName}`, {}, (datastr) => { this.callNetworkApiGetNew(`api/template/v2/${bundleName}`, {}, (dataObj) => {
// this.callNetworkApiGet(`api/template/v2/${bundleName}`, {}, (datastr) => { // this.callNetworkApiGet(`api/template/v2/${bundleName}`, {}, (dataObj) => {
console.log("callNetworkApiGetNew callback .."); console.log("callNetworkApiGetNew callback ..");
console.log("datastr : ", datastr); console.log("dataObj to str : ", JSON.stringify( dataObj ));
const data = JSON.parse(datastr).data; const data = dataObj.data;
let sceneName, version, bondleUrl = ""; let sceneName, version, bondleUrl = "";
const templateBaseUrl = `${this.DOMAIN}h5template/${data.name}/v${data.last_version}`; const templateBaseUrl = `${this.DOMAIN}h5template/${data.name}/v${data.last_version}`;
......
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