|
|
|
@ -24,13 +24,14 @@ export class SingleloginComponent implements OnInit {
|
|
|
|
|
async ngOnInit(): Promise<void> { |
|
|
|
|
console.log("查询参数", this.route.snapshot.queryParams.page); |
|
|
|
|
|
|
|
|
|
let obj = { |
|
|
|
|
SAG_USER_TOKEN: |
|
|
|
|
"J0UI55c9334Julcaad1cs5kL_5OEg6x_ONVHdH4kTRJHC_yrfRI6ej5dwPeEsJYg==", |
|
|
|
|
}; |
|
|
|
|
this.setCookie(obj); |
|
|
|
|
// let obj = {
|
|
|
|
|
// SAG_USER_TOKEN:
|
|
|
|
|
// "hrtwsc5737z6LYr67e2e0PvinLXvo0Pk8ffAp8qxOLXt9CtSLGg61cZv9IDjKybQ%3D%3D",
|
|
|
|
|
// };
|
|
|
|
|
// this.setCookie(obj);
|
|
|
|
|
|
|
|
|
|
let token = this.getCookie("SAG_USER_TOKEN"); |
|
|
|
|
token = token.replace(/%3D/g, "="); |
|
|
|
|
if (!token) { |
|
|
|
|
alert("获取失败!"); |
|
|
|
|
return; |
|
|
|
@ -79,7 +80,7 @@ export class SingleloginComponent implements OnInit {
|
|
|
|
|
getCurrentUserInfo() { |
|
|
|
|
return new Promise<void>((resolve, reject) => { |
|
|
|
|
this.http |
|
|
|
|
.get("/p3p/auth/getCurrentUserInfo", { |
|
|
|
|
.get("https://test-uomsp.sinochemoilmarketing.com/sagframe-portal/p3p/auth/getCurrentUserInfo", { |
|
|
|
|
params: { |
|
|
|
|
token: this.sinToken, |
|
|
|
|
}, |
|
|
|
@ -100,7 +101,7 @@ export class SingleloginComponent implements OnInit {
|
|
|
|
|
getAuthOrganInfos() { |
|
|
|
|
return new Promise<void>((resolve, reject) => { |
|
|
|
|
this.http |
|
|
|
|
.get("/p3p/auth/getAuthOrganInfos", { |
|
|
|
|
.get("https://test-uomsp.sinochemoilmarketing.com/sagframe-portal/p3p/auth/getAuthOrganInfos", { |
|
|
|
|
params: { |
|
|
|
|
token: this.sinToken, |
|
|
|
|
}, |
|
|
|
|