all customer from pargar fixing 3

This commit is contained in:
2026-07-22 01:05:00 +03:30
parent 01031e9e01
commit 133f4156c6
13 changed files with 214 additions and 59 deletions
+8
View File
@@ -734,6 +734,10 @@ class Controller extends BaseController
public function jibitNcode($nationalCode, $mobile)
{
if (!app(ConfigService::class)->isJibitEnabled()) {
return ['matched' => false, 'message' => 'سرویس احراز هویت جیبیت غیرفعال است.'];
}
$counter = Cnt::where('key', 'jibit_counter')->first();
if (empty($counter)) {
$counter = new Cnt();
@@ -784,6 +788,10 @@ class Controller extends BaseController
public static function jibit($method, $p1 = null, $p2 = null, $p3 = null)
{
if (!app(ConfigService::class)->isJibitEnabled()) {
throw new UnprocessableEntityHttpException('سرویس احراز هویت جیبیت غیرفعال است.');
}
$counter = Cnt::where('key', 'jibit_counter')->first();
if(empty($counter)){
$counter = new Cnt();