diff --git a/.env.example b/.env.example index 4b8cd08..66cdcf0 100644 --- a/.env.example +++ b/.env.example @@ -3,8 +3,7 @@ APP_ENV=local APP_KEY= APP_DEBUG=true APP_URL=http://localhost -API_URL=http://api_arrahn.test -API_URL_KOOP=http://api_arrahn_v3.test +API_URL=https://apiujrah.erahn.com.my API_LELONG_URL=https://niklah.arrahn.com.my LOG_CHANNEL=stack diff --git a/app/Http/Controllers/TacController.php b/app/Http/Controllers/TacController.php index ede755a..4f9af85 100644 --- a/app/Http/Controllers/TacController.php +++ b/app/Http/Controllers/TacController.php @@ -174,7 +174,7 @@ class TacController extends Controller private function getCustomerData($icno,$details = false){ $CustomerInfo_PKB = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/customers/' . $icno)->json(); - $CustomerInfo_KOOPKB = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url_koop') .'/api/customers/' . $icno)->json(); + $CustomerInfo_KOOPKB = $CustomerInfo_PKB; if($CustomerInfo_KOOPKB){ if($details == true){ diff --git a/config/api.php b/config/api.php index a556329..9ecec64 100644 --- a/config/api.php +++ b/config/api.php @@ -1,5 +1,9 @@ env('API_URL', 'http://api-annurv3.test'), - 'url_koop' => env('API_URL_KOOP', 'http://api-annurv2.test'), + 'url' => $url, + // Keep existing KOOP callers on the same customer API. + 'url_koop' => $url, ];