|
@@ -217,10 +217,12 @@ export class App implements OnInit {
|
|
|
|
|
|
|
|
// 1. Try getApig REST endpoint
|
|
// 1. Try getApig REST endpoint
|
|
|
const resp = await this.postJSON(API_BASE + '/api/apig/getApig', { authid: this.authId });
|
|
const resp = await this.postJSON(API_BASE + '/api/apig/getApig', { authid: this.authId });
|
|
|
|
|
+ console.log('[getApig] response:', JSON.stringify(resp).substring(0, 500));
|
|
|
if (resp.code === 200 && resp.data) {
|
|
if (resp.code === 200 && resp.data) {
|
|
|
this.apig = resp.data;
|
|
this.apig = resp.data;
|
|
|
this.applyTestTier();
|
|
this.applyTestTier();
|
|
|
this.selectTier(0);
|
|
this.selectTier(0);
|
|
|
|
|
+ this.cdr.detectChanges();
|
|
|
this.loadOrderHistory();
|
|
this.loadOrderHistory();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -237,6 +239,7 @@ export class App implements OnInit {
|
|
|
this.apig = cfData;
|
|
this.apig = cfData;
|
|
|
this.applyTestTier();
|
|
this.applyTestTier();
|
|
|
this.selectTier(0);
|
|
this.selectTier(0);
|
|
|
|
|
+ this.cdr.detectChanges();
|
|
|
this.loadOrderHistory();
|
|
this.loadOrderHistory();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|