Browse Source

[完善]linksPlan

master
邵佳豪 1 year ago
parent
commit
8e24430c91
  1. 14
      src/app/external-links-plan/external-links-plan.component.ts

14
src/app/external-links-plan/external-links-plan.component.ts

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

Loading…
Cancel
Save