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

登录接口修改

上级 0b9a1886
...@@ -58,7 +58,6 @@ export const getMessage = () => { ...@@ -58,7 +58,6 @@ export const getMessage = () => {
}; };
export const getOneStopMyInfo = (params = {}) => { export const getOneStopMyInfo = (params = {}) => {
console.log('getOneStopMyInfo');
return uaaRequest('/UserApi/getMy', params).then((res) => { return uaaRequest('/UserApi/getMy', params).then((res) => {
if (res) { if (res) {
if(!res.groupsId){ if(!res.groupsId){
......
...@@ -17,15 +17,17 @@ export function getHeaders(url = '', headersApi = undefined) { ...@@ -17,15 +17,17 @@ export function getHeaders(url = '', headersApi = undefined) {
headers: {}, headers: {},
}; };
if(!token || token === 'null'){ if (!token || token === 'null') {
return res; return res;
} else {
res.headers.Authorization = `bearer ${token}`; // 这个必须要带上
} }
if (getIsBei_Dian() && userId
) { if (getIsBei_Dian() && userId) {
res.headers.Authorization = `bearer ${token}`; res.headers.Authorization = `bearer ${token}`;
res.headers.auth = gg5xxxxx(secretString); res.headers.auth = gg5xxxxx(secretString);
res.headers.timestamp = timestamp; res.headers.timestamp = timestamp;
if(headersApi){ if (headersApi) {
res.headers.apis = headersApi; res.headers.apis = headersApi;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论