Commit 3dc1453f authored by limingzhe's avatar limingzhe

fix: debug

parent f23e7521
...@@ -53,7 +53,7 @@ export default class NewClass extends middleLayerBase { ...@@ -53,7 +53,7 @@ export default class NewClass extends middleLayerBase {
this.courseware_id = bundleInfo.courseware_id; this.courseware_id = bundleInfo.courseware_id;
cc.sys.localStorage.setItem('student_token', bundleInfo.token); cc.sys.localStorage.setItem('student_token', bundleInfo.token);
console.log("student_token: ", bundleInfo.token);
// 打开特殊课件 // 打开特殊课件
if (this.course_id < 1) { if (this.course_id < 1) {
......
...@@ -577,6 +577,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -577,6 +577,7 @@ export abstract class middleLayerBase extends cc.Component {
const url = `${this.API_BASE}${uri}${queryStr}`; const url = `${this.API_BASE}${uri}${queryStr}`;
console.log("callNetworkApiGetNew url = " + url); console.log("callNetworkApiGetNew url = " + url);
console.log('token: ', token);
// 如果请求失败 最多尝试5次重连 // 如果请求失败 最多尝试5次重连
for(let i=0; i<5; i++) { for(let i=0; i<5; i++) {
const result = await this.newXMLHttpRequest(url, token) const result = await this.newXMLHttpRequest(url, 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