|
|
@@ -245,8 +245,6 @@ export class LoginModalComponent {
|
|
|
countdown = signal(0);
|
|
|
countdownTimer: any = null;
|
|
|
|
|
|
- private company = 'E4KpGvTEto';
|
|
|
-
|
|
|
show(): void { this.visible = true; }
|
|
|
hide(): void { this.visible = false; }
|
|
|
|
|
|
@@ -274,7 +272,7 @@ export class LoginModalComponent {
|
|
|
'Content-Type': 'application/json',
|
|
|
'X-Parse-Application-Id': APP_ID
|
|
|
},
|
|
|
- body: JSON.stringify({ company: this.company, mobile: this.phone })
|
|
|
+ body: JSON.stringify({ mobile: this.phone })
|
|
|
});
|
|
|
const result = await resp.json();
|
|
|
if (result.error) {
|
|
|
@@ -306,7 +304,7 @@ export class LoginModalComponent {
|
|
|
|
|
|
try {
|
|
|
// 1. 调用登录接口获取 session token
|
|
|
- const loginUrl = `${API_HOST}/api/auth/mobile?company=${this.company}&mobile=${this.phone}&code=${this.code}`;
|
|
|
+ const loginUrl = `${API_HOST}/api/auth/mobile?mobile=${this.phone}&code=${this.code}`;
|
|
|
const resp = await fetch(loginUrl, {
|
|
|
method: 'GET',
|
|
|
headers: { 'X-Parse-Application-Id': APP_ID }
|