Commit a90d118e authored by limingzhe's avatar limingzhe

fix: debug

parent 174c60e5
......@@ -582,6 +582,8 @@ export abstract class middleLayerBase extends cc.Component {
xhr.open("POST", url, true);
xhr.setRequestHeader('content-type', 'application/json');
xhr.onreadystatechange = () => {
console.log('xhr: ', xhr);
if (xhr.readyState == 4) {
console.log('xhr.responseText : ' + xhr.responseText);
callBack(JSON.parse(xhr.responseText));
......
......@@ -337,7 +337,8 @@ class StudyRecord {
};
console.log('Prepared report data:', reportData);
return reportData;
// return reportData;
return {score: 100};
}
}
......
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