From ace043eb4736026f7c1c7d01fb2826aff17716e3 Mon Sep 17 00:00:00 2001 From: "addressxy@vip.qq.com" Date: Thu, 8 Apr 2021 08:38:21 +0800 Subject: [PATCH] update temporary url --- cloudapp/src/app/main/main.component.ts | 6 +++--- cloudapp/src/app/settings/settings.component.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cloudapp/src/app/main/main.component.ts b/cloudapp/src/app/main/main.component.ts index 500d06e..d0aa2b0 100644 --- a/cloudapp/src/app/main/main.component.ts +++ b/cloudapp/src/app/main/main.component.ts @@ -381,12 +381,12 @@ export class MainComponent implements OnInit, OnDestroy { value.appendChild(el); }) } - +//https://api.exldevnetwork.net.cn → 临时 https://dxcgj4rqx9.execute-api.cn-north-1.amazonaws.com.cn fetch_z311(key: string) { return new Promise((resolve, reject) => { this.eventsService.getAuthToken().subscribe( data => { - this.http.get("https://api.exldevnetwork.net.cn" + this.form.value.lookupUrl.replace("KEY", key), { + this.http.get("https://dxcgj4rqx9.execute-api.cn-north-1.amazonaws.com.cn" + this.form.value.lookupUrl.replace("KEY", key), { headers: { 'X-Proxy-Host': 'http://aleph20.exlibris.com.cn:8992', 'Authorization': 'Bearer ' + data @@ -396,7 +396,7 @@ export class MainComponent implements OnInit, OnDestroy { resolve(data) }, error => { this.loading = false; - this.alert.error(this.translate.instant('i18n.error', {url: "https://api.exldevnetwork.net.cn" + this.form.value.lookupUrl.replace("KEY", key)}), {autoClose: true, delay: 3000}); + this.alert.error(this.translate.instant('i18n.error', {url: "https://dxcgj4rqx9.execute-api.cn-north-1.amazonaws.com.cn" + this.form.value.lookupUrl.replace("KEY", key)}), {autoClose: true, delay: 3000}); reject(error) }) } diff --git a/cloudapp/src/app/settings/settings.component.ts b/cloudapp/src/app/settings/settings.component.ts index 7bd8c34..6b58c87 100644 --- a/cloudapp/src/app/settings/settings.component.ts +++ b/cloudapp/src/app/settings/settings.component.ts @@ -386,7 +386,7 @@ export class SettingsComponent implements OnInit, OnDestroy { return new Promise((resolve, reject) => { this.eventsService.getAuthToken().subscribe( data => { - this.http.get("https://api.exldevnetwork.net.cn" + this.form.value.lookupUrl.replace("KEY", key), { + this.http.get("https://dxcgj4rqx9.execute-api.cn-north-1.amazonaws.com.cn" + this.form.value.lookupUrl.replace("KEY", key), { headers: { 'X-Proxy-Host': 'http://aleph20.exlibris.com.cn:8992', 'Authorization': 'Bearer ' + data @@ -396,7 +396,7 @@ export class SettingsComponent implements OnInit, OnDestroy { resolve(data) }, error => { this.loading = false; - this.alert.error(this.translate.instant('i18n.error', {url: "https://api.exldevnetwork.net.cn" + this.form.value.lookupUrl.replace("KEY", key)}), {autoClose: true, delay: 3000}); + this.alert.error(this.translate.instant('i18n.error', {url: "https://dxcgj4rqx9.execute-api.cn-north-1.amazonaws.com.cn" + this.form.value.lookupUrl.replace("KEY", key)}), {autoClose: true, delay: 3000}); reject(error) }) }