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