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

Merge remote-tracking branch 'origin/master'

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