fix: unify PKB and KOOP API configuration and remove duplicate TAC customer request
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
@@ -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
@@ -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,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user