Commit 089938b0 authored by limingzhe's avatar limingzhe

fix: debug

parent 20cb30dd
...@@ -347,13 +347,15 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -347,13 +347,15 @@ export abstract class middleLayerBase extends cc.Component {
api = `api/courseware/v2/${courseId}/eq/level/list`; api = `api/courseware/v2/${courseId}/eq/level/list`;
} }
this.callNetworkApiGetNew(api, {}, (datastr) => { this.callNetworkApiGetNew(api, {}, (data) => {
// this.callNetworkApiGet(api, {}, (datastr) => { // this.callNetworkApiGet(api, {}, (datastr) => {
if (this.isDestroy) { if (this.isDestroy) {
// 已退出 // 已退出
return; return;
} }
const data = JSON.parse(datastr);
// const data = JSON.parse(datastr);
if (data.rows && data.rows.length > 0) { if (data.rows && data.rows.length > 0) {
this.courses = data.rows; this.courses = data.rows;
if (coursewareId) { if (coursewareId) {
...@@ -645,8 +647,6 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -645,8 +647,6 @@ export abstract class middleLayerBase extends cc.Component {
clearTimeout(timeoutId); clearTimeout(timeoutId);
timeoutId = null; timeoutId = null;
} }
console.log('xhr~: ', JSON.stringify(xhr));
resovle(JSON.parse(xhr.responseText)); resovle(JSON.parse(xhr.responseText));
} }
}; };
......
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