fix: unify PKB and KOOP API configuration and remove duplicate TAC customer request

This commit is contained in:
nurafrinaalimi16
2026-09-22 11:04:09 +08:00
parent 602bd4cd02
commit 63231a23af
3 changed files with 8 additions and 5 deletions
+1 -2
View File
@@ -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
+1 -1
View File
@@ -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){
+6 -2
View File
@@ -1,5 +1,9 @@
<?php
$url = env('API_URL', 'https://apiujrah.erahn.com.my');
return [
'url' => 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,
];