Commit afdbe638 authored by 李维's avatar 李维

feat: 添加调试日志

parent 4d01c96b
...@@ -81,14 +81,14 @@ export default class NewClass extends middleLayerBase { ...@@ -81,14 +81,14 @@ export default class NewClass extends middleLayerBase {
return; return;
} }
console.log({ console.log('========== reportScore ==========');
console.log(JSON.stringify({
token: this.token, token: this.token,
score: data.score, score: data.score,
syllabus_id: this.courseItem.course_id, syllabus_id: this.courseItem.course_id,
courseware_id: this.courseItem.id, courseware_id: this.courseItem.id,
type: "" type: ""
} }));
)
this.callNetworkApiPost(`api/dige/v1/user/score/report`, { this.callNetworkApiPost(`api/dige/v1/user/score/report`, {
token: this.token, token: this.token,
score: data.score, score: data.score,
...@@ -105,13 +105,14 @@ export default class NewClass extends middleLayerBase { ...@@ -105,13 +105,14 @@ export default class NewClass extends middleLayerBase {
return; return;
} }
console.log({ console.log('========== getRankList ==========');
console.log(JSON.stringify({
token: this.token, token: this.token,
syllabus_id: this.courseItem.course_id, syllabus_id: this.courseItem.course_id,
courseware_id: this.courseItem.id, courseware_id: this.courseItem.id,
direction: data.direction, // 方向 up 向上 down 向下 direction: data.direction, // 方向 up 向上 down 向下
ranking: data.ranking ranking: data.ranking
}) }));
this.callNetworkApiPost(`api/dige/v1/user/score/rank`, { this.callNetworkApiPost(`api/dige/v1/user/score/rank`, {
token: this.token, token: this.token,
......
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