fix: prevent duplicate homepage financing records and update API and login configuration
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\CompanyStatus;
|
||||
use App\Services\CustomerInfoService;
|
||||
use App\Models\LelongBid;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
@@ -31,8 +32,7 @@ class InformationController extends Controller
|
||||
{
|
||||
$auth_user = Auth::User();
|
||||
|
||||
$customer_pkb = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/portal/customer/info',['ic' => $auth_user['icno']])->json();
|
||||
$customer_koop = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url_koop') .'/portal/customer/info',['ic' => $auth_user['icno']])->json();
|
||||
[$customer_pkb, $customer_koop] = CustomerInfoService::get($auth_user['icno']);
|
||||
|
||||
$pembiayaansemasa = [];
|
||||
if(isset($customer_pkb['gadai'])){
|
||||
@@ -98,8 +98,7 @@ class InformationController extends Controller
|
||||
{
|
||||
$auth_user = Auth::User();
|
||||
|
||||
$customer_pkb = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/portal/customer/info',['ic' => $auth_user['icno']])->json();
|
||||
$customer_koop = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url_koop') .'/portal/customer/info',['ic' => $auth_user['icno']])->json();
|
||||
[$customer_pkb, $customer_koop] = CustomerInfoService::get($auth_user['icno']);
|
||||
|
||||
$melebihi6bulan = [];
|
||||
|
||||
@@ -138,8 +137,7 @@ class InformationController extends Controller
|
||||
{
|
||||
$auth_user = Auth::User();
|
||||
|
||||
$customer_pkb = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/portal/customer/info',['ic' => $auth_user['icno']])->json();
|
||||
$customer_koop = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url_koop') .'/portal/customer/info',['ic' => $auth_user['icno']])->json();
|
||||
[$customer_pkb, $customer_koop] = CustomerInfoService::get($auth_user['icno']);
|
||||
|
||||
$lelong = [];
|
||||
if(isset($customer_pkb['lelong'])){
|
||||
|
||||
Reference in New Issue
Block a user