NASER fix jibit checker issues and make new settings editable

This commit is contained in:
gholak tala
2026-04-28 16:37:12 +00:00
parent 79a5d98dce
commit c68f8ec53d
3 changed files with 12 additions and 11 deletions
+2
View File
@@ -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']);
}