|
@@ -101,7 +101,7 @@ export class App implements OnInit {
|
|
|
const params = new URLSearchParams(window.location.search);
|
|
const params = new URLSearchParams(window.location.search);
|
|
|
this.authId = params.get('authid') || '';
|
|
this.authId = params.get('authid') || '';
|
|
|
this.userId = params.get('user') || params.get('userid') || '';
|
|
this.userId = params.get('user') || params.get('userid') || '';
|
|
|
- this.apigId = params.get('apigid') || '';
|
|
|
|
|
|
|
+ this.apigId = params.get('apigid') || 'Vo3ROWEvDy';
|
|
|
this.funId = params.get('fun_id') || DEFAULT_FUN_ID;
|
|
this.funId = params.get('fun_id') || DEFAULT_FUN_ID;
|
|
|
|
|
|
|
|
// 1. URL 已提供足够参数 → 直接加载
|
|
// 1. URL 已提供足够参数 → 直接加载
|
|
@@ -121,11 +121,7 @@ export class App implements OnInit {
|
|
|
this.sessionToken = cachedToken;
|
|
this.sessionToken = cachedToken;
|
|
|
// 后台验证 token 是否还有效
|
|
// 后台验证 token 是否还有效
|
|
|
this.validateCachedToken(cachedToken, cachedUserId);
|
|
this.validateCachedToken(cachedToken, cachedUserId);
|
|
|
- if (this.apigId) {
|
|
|
|
|
- this.loadApig();
|
|
|
|
|
- } else {
|
|
|
|
|
- this.loadApigList();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.loadApig();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -162,10 +158,6 @@ export class App implements OnInit {
|
|
|
this.needLogin = false;
|
|
this.needLogin = false;
|
|
|
this.errorMsg = '';
|
|
this.errorMsg = '';
|
|
|
|
|
|
|
|
- if (!this.apigId) {
|
|
|
|
|
- this.loadApigList();
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
this.loadApig();
|
|
this.loadApig();
|
|
|
}
|
|
}
|
|
|
|
|
|