|
|
|
@ -132,10 +132,18 @@ export class ExternalLinksPlanComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
async login() { |
|
|
|
|
await new Promise((resolve, reject) => { |
|
|
|
|
let { appKey, signature, timestamp } = this.route.snapshot.queryParams; |
|
|
|
|
if (!appKey || !signature || !timestamp) { |
|
|
|
|
alert("url参数不完整"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
this.http |
|
|
|
|
.post("/api/Account/SignIn", { |
|
|
|
|
name: "zhuzhouyuanchakan", |
|
|
|
|
password: "12345678", |
|
|
|
|
.get("/api/Account/VerifyAppInfo", { |
|
|
|
|
params: { |
|
|
|
|
appKey: appKey, |
|
|
|
|
signature: signature, |
|
|
|
|
timestamp: timestamp, |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
.subscribe((data: any) => { |
|
|
|
|
sessionStorage.setItem("level", data.level); |
|
|
|
|