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
+2 -2
View File
@@ -193,7 +193,7 @@ class AuthController extends Controller
} while (Customer::where('referral_id', $uniqueId)->exists());
$data['referral_id'] = $uniqueId;
if (isset($data['n_code']) && $cfg->getBool('register_jibit_verify', false)) {
if (isset($data['n_code']) && $cfg->isRegisterJibitVerifyEnabled()) {
$existing = Customer::where('n_code', $data['n_code'])->first();
if (!empty($existing)) {
return response()->json(['message' => 'کد ملی تکراری است'], 422);
@@ -247,7 +247,7 @@ class AuthController extends Controller
}
}
if ($cfg->getBool('register_jibit_verify', false) && isset($customer->is_legal)) {
if ($cfg->isRegisterJibitVerifyEnabled() && isset($customer->is_legal)) {
$message = $customer->is_legal === 1
? 'احرازهویت برای ' . $customer->name . ' با کد ' . $customer->id . ' انجام شد.'
: 'احرازهویت برای ' . $customer->name . ' با کد ' . $customer->id . ' تأیید نشد لطفا از پنل ادمین اقدام فرمایید.';