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

Merge remote-tracking branch 'origin/master'

......@@ -16,7 +16,7 @@ export function isJSON(str) {
}
export const getSysCode = () => {
return getYunShangGuiZhouSyStemConfig().sysCode;
return window.specialImportantSystemConfig.sysCode || getYunShangGuiZhouSyStemConfig().sysCode;
};
// 查询系统配置
......@@ -41,15 +41,15 @@ export const getYunShangGuiZhouSyStemConfig = () => {
export const getSassApiHeader = () => {
// 解决禅道 34246 在学工、素质测评、宿管、离校的所有接口中增加请求头
if(!getSysCode()){
if(!getSysCode() && !window.specialImportantSystemConfig.sysCode){
return {
Authorization: `bearer ${getToken()}`,
};
}else{
return {
Authorization: `bearer ${getToken()}`,
sysCode: getSysCode(),
tenant: getUserInfo().tenantCode || null,
sysCode: window.specialImportantSystemConfig.sysCode || getSysCode(),
tenant: window.specialImportantSystemConfig.tenant || getUserInfo().tenantCode || null,
};
}
};
......@@ -47,11 +47,15 @@ export const getUserInfo = () => {
x.groupsId = 'pub';
x.differenceBetweenServerAndClientTime = 0;
}
if(!x.tenantCode){
x.tenantCode = window.specialImportantSystemConfig.tenant || undefined;
}
return x;
} else {
return {
groupsId: 'pub',
differenceBetweenServerAndClientTime: 0,
tenantCode: window.specialImportantSystemConfig.tenant || undefined,
};
}
};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论