Commit 40e76ee0 authored by limingzhe's avatar limingzhe

fix: debug

parent 305f5729
......@@ -355,6 +355,13 @@ export abstract class middleLayerBase extends cc.Component {
}
// const data = JSON.parse(datastr);
if (typeof data == 'object') {
console.log('data.str 1: ', JSON.stringify(data));
} else {
console.log('data.str 2: ', data);
}
if (data.rows && data.rows.length > 0) {
this.courses = data.rows;
......@@ -364,6 +371,7 @@ export abstract class middleLayerBase extends cc.Component {
this.courseIndex = data.index || 0;
}
this.courseItem = data.rows[this.courseIndex];
} else {
this.hideWaitingLetters();
this.showTips(`内容还未制作`);
......
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