Commit 65629d68 authored by liujiangnan's avatar liujiangnan

feat: 完善提交

parent ff71dd81
...@@ -27,7 +27,7 @@ cc.Class({ ...@@ -27,7 +27,7 @@ cc.Class({
}, 0); }, 0);
layout.width = totalWidth; layout.width = totalWidth;
const baseUrl = 'https://staging-teach.ireadabc.com'; const baseUrl = '//staging-teach.ireadabc.com';
const uri = '/api/template/v1/middleLayer_for_debug' const uri = '/api/template/v1/middleLayer_for_debug'
const reqData = {}; const reqData = {};
...@@ -45,7 +45,8 @@ cc.Class({ ...@@ -45,7 +45,8 @@ cc.Class({
console.log('汪汪汪: ' + configData.sceneName); console.log('汪汪汪: ' + configData.sceneName);
cc.assetManager.loadBundle(configData.bondleUrl, { version: configData.version }, async (err, bundle) => { cc.assetManager.loadBundle(configData.bondleUrl, { version: configData.version }, async (err, bundle) => {
if (err) { if (err) {
return this.asyncDelayLog(err); console.log(err);
return;
} }
// 方便Debug壳的打包 // 方便Debug壳的打包
...@@ -54,7 +55,8 @@ cc.Class({ ...@@ -54,7 +55,8 @@ cc.Class({
// 如果没有牛津的主界面,就显示debug的界面,方便调试 // 如果没有牛津的主界面,就显示debug的界面,方便调试
bundle.loadScene(configData.sceneName, null, null, (e, scene) => { bundle.loadScene(configData.sceneName, null, null, (e, scene) => {
if (e) { if (e) {
return this.asyncDelayLog(e); console.log(e);
return;
} }
cc.director.runScene(scene); cc.director.runScene(scene);
}); });
......
...@@ -172,7 +172,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -172,7 +172,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if(typeof(res) == 'string') { if(typeof(res) == 'string') {
isDev = JSON.parse(res).isDev; isDev = JSON.parse(res).isDev;
} else { } else {
isDev = res; isDev = res.isDev;
} }
console.log('isDev ' +(+isDev)); console.log('isDev ' +(+isDev));
if (+isDev) { if (+isDev) {
......
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