Team Create (���������� ��������������) + ���������� ���� + ������ 16/17/20/40/44/05 #34

Merged
min merged 69 commits from restore/all-tasks into main 2026-06-08 01:13:01 +00:00
Showing only changes of commit ce6e69a2e8 - Show all commits

View File

@ -4442,7 +4442,8 @@ export class GameRuntime {
if (!url) return;
try {
fetch(url, {
method: 'POST', headers: { 'Content-Type': 'application/json' },
method: 'POST',
headers: this._economyAuthHeaders(), // JWT игрока (иначе 401)
body: JSON.stringify({ data }),
}).catch(() => {});
} catch (e) { /* ignore */ }
@ -4451,7 +4452,8 @@ export class GameRuntime {
loadProgress(namespace, cb) {
const url = this._saveBaseUrl(namespace);
if (!url) { cb && cb(null); return; }
fetch(url).then(r => r.json())
fetch(url, { headers: this._economyAuthHeaders() })
.then(r => r.json())
.then(j => cb && cb(j.data ?? null))
.catch(() => cb && cb(null));
}