fix skit2 pasal ui
This commit is contained in:
@@ -17,8 +17,9 @@ class TacController extends Controller
|
||||
|
||||
if($tac){
|
||||
$CustomerInfo = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/customers/' . $request->icno)->json();
|
||||
$daerah = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/daerah/' . $CustomerInfo['koddaerah'])->json();
|
||||
$negeri =Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/negeri/' . $CustomerInfo['kodnegeri'])->json();
|
||||
$poskod = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/poskod/' . $CustomerInfo['poskod'])->json();
|
||||
$daerah = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/daerah/' . $poskod['koddaerah'])->json();
|
||||
$negeri =Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/negeri/' . $poskod['kodnegeri'])->json();
|
||||
|
||||
return response(['status' => 1, 'customerinfo' => $CustomerInfo,'namadaerah' => $daerah['namadaerah'],'namanegeri' => $negeri['negeri']]);
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user