Commit 581d24f9 authored by limingzhe's avatar limingzhe

fix: debug

parent 4df0d600
...@@ -334,7 +334,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -334,7 +334,7 @@ export abstract class middleLayerBase extends cc.Component {
courseIndex = 0; courseIndex = 0;
courseItem = null; courseItem = null;
courseOpenTimeStamp = null; courseOpenTimeStamp = null;
loadOnlineCourseWare(courseId, linkFlag = false, coursewareId = null) { loadOnlineCourseWare(courseId, coursewareId = null, callback) {
if (this.IS_BUNDLE_LOADING) { if (this.IS_BUNDLE_LOADING) {
return; return;
} }
...@@ -343,9 +343,9 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -343,9 +343,9 @@ export abstract class middleLayerBase extends cc.Component {
this.showWaitingLetters(); this.showWaitingLetters();
let api = `api/courseware/v2/${courseId}/list`; let api = `api/courseware/v2/${courseId}/list`;
if (linkFlag === true) { // if (linkFlag === true) {
api = `api/courseware/v2/${courseId}/eq/level/list`; // api = `api/courseware/v2/${courseId}/eq/level/list`;
} // }
this.callNetworkApiGetNew(api, {}, (data) => { this.callNetworkApiGetNew(api, {}, (data) => {
// this.callNetworkApiGet(api, {}, (datastr) => { // this.callNetworkApiGet(api, {}, (datastr) => {
...@@ -386,9 +386,12 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -386,9 +386,12 @@ export abstract class middleLayerBase extends cc.Component {
this.hideWaitingLetters(); this.hideWaitingLetters();
this.showTips(`内容还未制作`); this.showTips(`内容还未制作`);
this.IS_BUNDLE_LOADING = false; this.IS_BUNDLE_LOADING = false;
callback && callback(false);
return; return;
} }
this.loadPageBundle(() => { this.loadPageBundle(() => {
callback && callback(true);
}); });
}); });
} }
......
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