Commit 60afbbe7 authored by 范雪寒's avatar 范雪寒

fix: getdata 参数修正

parent 3db12877
...@@ -5,16 +5,10 @@ cc.Class({ ...@@ -5,16 +5,10 @@ cc.Class({
getData(callBack) { getData(callBack) {
this.showLog('getData'); this.showLog('getData');
const uri = 'courseware/v1/getdata'; const uri = 'courseware/v1/getdata';
const course_id = this.bundleInfoList[this.currentBundleIndex].course_id; const syllabus_id = this.bundleInfoList[this.currentBundleIndex].syllabus_id;
const courseData = this.bundleInfoList[this.currentBundleIndex];
for (const key in courseData) {
this.showLog(`${key}: ${courseData[key]}`);
}
const data = { const data = {
courseid: course_id courseid: syllabus_id
}; };
this.showLog('course_id = ' + JSON.stringify(course_id));
console.log('data = ' + JSON.stringify(data));
this.callNetworkApiGet(uri, data, callBack); this.callNetworkApiGet(uri, data, callBack);
}, },
......
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