get
This commit is contained in:
@@ -209,17 +209,8 @@ export class FastcheckPage {
|
||||
return;
|
||||
}
|
||||
|
||||
// Pre-fill body from URL query params — partner usually forwards them.
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
const body = {
|
||||
fastcheck: params.get('fastcheck') ?? this.fastcheckNumber() ?? '',
|
||||
Code: params.get('code') ?? this.fastcheckCode() ?? '',
|
||||
telegramID: params.get('telegramID') ?? params.get('tg') ?? '',
|
||||
callbackurl: params.get('callbackurl') ?? params.get('callback') ?? ''
|
||||
};
|
||||
|
||||
const url = `${FASTCHECK_STORE_API}/fastcheck/settings/${encodeURIComponent(id)}`;
|
||||
this.http.post<SettingsResponse>(url, body).subscribe({
|
||||
this.http.get<SettingsResponse>(url).subscribe({
|
||||
next: (res) => {
|
||||
this.settingsLoaded.set(true);
|
||||
this.settingsError.set('');
|
||||
|
||||
Reference in New Issue
Block a user