Commit 581d24f9 authored by limingzhe's avatar limingzhe

fix: debug

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