Skip to content

Commit

Permalink
update temporary url
Browse files Browse the repository at this point in the history
  • Loading branch information
addressxy committed Apr 8, 2021
1 parent a625d50 commit ace043e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cloudapp/src/app/main/main.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
})
}
Expand Down
4 changes: 2 additions & 2 deletions cloudapp/src/app/settings/settings.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
})
}
Expand Down

0 comments on commit ace043e

Please sign in to comment.