NASER fix jibit checker issues and make new settings editable
This commit is contained in:
@@ -212,6 +212,8 @@ class Controller extends BaseController
|
||||
if (isset( $apiData['cartMatching']['matched']) and $apiData['cartMatching']['matched'] == true) {
|
||||
$apiData['cartData'] = Http::withoutVerifying()->withToken(Storage::get('accessTokenGibit'))->get("https://napi.jibit.ir/ide/v1/cards?number=$p1&iban=true")->json();
|
||||
return $apiData;
|
||||
}elseif(isset( $apiData['cartMatching']['matched']) and $apiData['cartMatching']['matched'] == false){
|
||||
return $apiData;
|
||||
} else {
|
||||
throw new UnprocessableEntityHttpException($apiData['cartMatching']['message']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user