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
@@ -206,7 +206,7 @@ class CustomerController extends Controller
// $tah = new TahesabController();
// $tah->store(["customer_id" => $customer->id]);
$cfg = app(ConfigService::class);
if (!$wasLegal && $cfg->getBool('register_jibit_verify', false)) {
if (!$wasLegal && $cfg->isRegisterJibitVerifyEnabled()) {
$response = $this->jibitNcode($customer->n_code, $customer->mobile);
if (isset($response['matched']) and $response['matched'] == true) {
@@ -235,7 +235,7 @@ class CustomerController extends Controller
}
} elseif (!$customer->is_legal && !$cfg->getBool('register_jibit_verify', false)) {
} elseif (!$customer->is_legal && !$cfg->isRegisterJibitVerifyEnabled()) {
return response()->json([
'message' => 'اطلاعات شما با موفقیت ثبت شد. لطفاً برای تکمیل احراز هویت با پشتیبانی یا مدیر سامانه تماس بگیرید.',
], 422);