From 8e24430c913424035a9f61bde84bd34a4eebf0c5 Mon Sep 17 00:00:00 2001 From: Sjh <55341701@qq.com> Date: Tue, 27 Feb 2024 10:52:46 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]linksPlan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../external-links-plan.component.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/app/external-links-plan/external-links-plan.component.ts b/src/app/external-links-plan/external-links-plan.component.ts index 7d6a9e1..01474da 100644 --- a/src/app/external-links-plan/external-links-plan.component.ts +++ b/src/app/external-links-plan/external-links-plan.component.ts @@ -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);