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

28106 退寝管理-》待退寝学生中新增导出按钮

上级 f9b5a909
......@@ -244,7 +244,7 @@ export default class Index extends Component {
width,
height,
} = this.props;
console.log(this.props);
// console.log(this.props);
const { url } = this.state;
if (url) {
return <div className={styles.webSign}>
......
......@@ -344,24 +344,28 @@ export function getHeaders(url = '') {
const currentInfo = getCurrentUser();
const timestamp = window.serviceCurrentDate || new Date().getTime();
const secretString = token + currentInfo.userid + currentInfo.typeString + timestamp;
if (isTest) {
console.log(
{
secretString,
md5S: Md5(secretString),
timestamp,
userId: currentInfo.userid,
typeString: currentInfo.typeString,
},
);
}
return {
const res = {
headers: {
Authorization: `bearer ${token}`,
auth: Md5(secretString),
timestamp,
},
};
if(getIsBei_Dian() && currentInfo?.userid){
res.headers.auto = Md5(secretString);
res.headers.timestamp = timestamp;
if (isTest) {
console.log(
{
secretString,
md5S: Md5(secretString),
timestamp,
userId: currentInfo.userid,
typeString: currentInfo.typeString,
},
);
}
}
return res;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论