Merge branch 'gitlink_ssr_head' into pre_gitlink_ssr

This commit is contained in:
caishi 2026-06-26 17:16:03 +08:00
commit b544be900c
3 changed files with 4 additions and 4 deletions

View File

@ -13,8 +13,8 @@ function Lessons(props,{src="https://gitlink.educoder.net/"}){
useEffect(()=>{
if(current_user && current_user.login){
let p =`?websiteName=gitlink&openkey=`+Base64.encode("05e9081ede2e7425db064df44b5fb1897234f44f922443b89597d17b60dc8f3e")+`&sign=cdf0f69b4d5b4293f7914cc1f1f31742
&login=`+current_user.login+`&lastname=`+current_user.real_name+`&nickname=`+current_user.nickname+`&mail=`+current_user.email+`&school_name=`+current_user.custom_department+`
&phone=`+current_user.phone+``;
&login=`+current_user.login+`&lastname=`+current_user.real_name+`&nickname=`+current_user.nickname+`&mail=`+current_user.email+`&school_name=${current_user.custom_department || ""}`+
`&phone=${current_user.phone || ""}`;
setParams(p);
}
},[current_user])

View File

@ -15,7 +15,7 @@ function beforeFetch(actionUrl){
service.interceptors.request.use(request => {
let deptId = sessionStorage.getItem('deptId');
// request.headers.Authorization = 'ea5a846163283f953852483e023fd1a78dfb49de'
request.headers.Authorization = 'ad9cf7c24c0ef721d199f889e9fb2671d76b7655'
if (deptId) {
// 用于权限区分
request.headers['Dept-Id'] = deptId

View File

@ -58,7 +58,7 @@ function Login(props){
const goPage = searchParams.get("go_page");
if(goPage && goPage.includes("gitlink.educoder.net")){
const {login, real_name, nickname, email, custom_department, phone} = response.data;
const params =`websiteName=gitlink&openkey=`+Base64.encode("05e9081ede2e7425db064df44b5fb1897234f44f922443b89597d17b60dc8f3e")+`&sign=cdf0f69b4d5b4293f7914cc1f1f31742&login=`+login+`&lastname=`+real_name+`&nickname=`+nickname+`&mail=`+email+`&school_name=`+custom_department+`&phone=`+phone+``;
const params =`websiteName=gitlink&openkey=`+Base64.encode("05e9081ede2e7425db064df44b5fb1897234f44f922443b89597d17b60dc8f3e")+`&sign=cdf0f69b4d5b4293f7914cc1f1f31742&login=`+login+`&lastname=`+real_name+`&nickname=`+nickname+`&mail=`+email+`&school_name=${custom_department||""}&phone=${phone||""}`;
getCurrentRole(34, 375).finally(()=>{
const decodedGoPage = decodeURIComponent(goPage);
const separator = decodedGoPage.includes('?') ? '&' : '?';