Commit f4e5198f authored by limingzhe's avatar limingzhe

fix: debug

parent df8e5edb
......@@ -588,7 +588,9 @@ export abstract class middleLayerBase extends cc.Component {
}
}
// 将token放入头信息里
xhr.setRequestHeader("token", token)
xhr.setRequestHeader("Authorization", `Bearer ${token}`);
xhr.send(JSON.stringify(data));
console.log('JSON.stringify(data) : ' + JSON.stringify(data));
......
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