all customer from pargar fixing 3
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user