wip
This commit is contained in:
1 parent
74f04f44c1
commit
79c4bb0c24
2 files changed
+4
-9
No files matched your search
@@ -24,11 +24,9 @@ public function showCardBalance(Card $record): View
|
||||
card_expire_date: $record->month.'/'.substr($record->year, 2),
|
||||
);
|
||||
|
||||
if ($data->errCode != 0) {
|
||||
return view('module.card-balance::client-not-found', compact('data'));
|
||||
}
|
||||
|
||||
return view('module.card-balance::card-balance-modal', compact('data'));
|
||||
return $data->errCode != 0
|
||||
? view('module.card-balance::client-not-found', compact('data'))
|
||||
: view('module.card-balance::card-balance-modal', compact('data'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,7 +67,7 @@ public function fetchCardBalance($passport_serie, $passport_id, $card_masked, $c
|
||||
curl_close($curl);
|
||||
|
||||
/** @var object */
|
||||
$safeResponse = Str::isJson($response)
|
||||
$safeResponse = Str::isJson($response)
|
||||
? json_decode($response)
|
||||
: emptyClass(errCode: 1, message: 'Connection issue to VP');
|
||||
|
||||
|
||||
Reference in new issue
Block a user