Commit 089938b0 authored by limingzhe's avatar limingzhe

fix: debug

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