fix(settings): drop program-settings last-good cache and prefer montzar

Stale Redis overlay and SMS-origin-first fetch kept feature flags like customer_special_pricing false after SuperAdmin turned them on. Always fetch live and try adm.montzar.ir first.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-29 22:39:08 +03:30
co-authored by Cursor
parent cecb84bad9
commit 63195718a2
4 changed files with 66 additions and 73 deletions
@@ -94,10 +94,11 @@ class SettingsController extends Controller
if (! ($result['ok'] ?? false)) {
return response()->json([
'message' => 'ارتباط با سوپرادمین برقرار نشد؛ کش پاک شد و در درخواست بعدی دوباره تلاش می‌شود',
'message' => 'ارتباط با سوپرادمین برقرار نشد؛ در درخواست بعدی دوباره تلاش می‌شود',
'ok' => false,
'count' => 0,
'items' => [],
'meta' => $result['meta'] ?? [],
], 502);
}
@@ -109,6 +110,7 @@ class SettingsController extends Controller
'count' => $count,
'items' => $result['items'] ?? [],
'source' => $result['source'] ?? 'superadmin',
'meta' => $result['meta'] ?? [],
]);
}