提交 77f41269 authored 作者: 钟是志's avatar 钟是志

移动端鉴权bug修改

上级 b5a31950
......@@ -10,9 +10,9 @@ export function getHeaders(url = '') {
const token = getToken();
const currentInfo = getCurrentUser();
const onestopInfo = getUserInfo();
const id = currentInfo.xgUserId || onestopInfo.id;
const id = onestopInfo.id || currentInfo.xgUserId;
const timestamp = onestopInfo.differenceBetweenServerAndClientTime ? new Date().getTime() + onestopInfo.differenceBetweenServerAndClientTime : new Date().getTime();
const secretString = token + currentInfo.xgUserId + timestamp;
const secretString = token + id + timestamp;
const res = {
headers: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论