Commit 65629d68 authored by liujiangnan's avatar liujiangnan

feat: 完善提交

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