This commit is contained in:
sdarbinyan
2026-05-14 13:07:39 +04:00
parent f1f2ccc777
commit b6df88d266

View File

@@ -209,17 +209,8 @@ export class FastcheckPage {
return; 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)}`; const url = `${FASTCHECK_STORE_API}/fastcheck/settings/${encodeURIComponent(id)}`;
this.http.post<SettingsResponse>(url, body).subscribe({ this.http.get<SettingsResponse>(url).subscribe({
next: (res) => { next: (res) => {
this.settingsLoaded.set(true); this.settingsLoaded.set(true);
this.settingsError.set(''); this.settingsError.set('');