NASER fix price issues & close trade when tahesab is unavailable

This commit is contained in:
gholak tala
2026-03-16 10:04:14 +00:00
parent 69dec434d7
commit df4972eceb
3 changed files with 26 additions and 6 deletions
@@ -30,7 +30,9 @@ class SingleOrderController extends Controller
public function store(Request $request)
{
$goldir = Cnt::where('key', 'goldir_closed')->first();
if(isset($goldir) && $goldir['value'] == "true"){
$tahesab = new TahesabController();
$healthCheck = $tahesab->healthCheck();
if(isset($goldir) && $goldir['value'] == "true" && $healthCheck){
throw new UnprocessableEntityHttpException('عدم ارائه سرویس.');
}