Change the status from 403 to 200
This commit is contained in:
@@ -105,7 +105,7 @@ class LelongController extends Controller
|
|||||||
|
|
||||||
if($checkCashBox->getContent() !== 'sama')
|
if($checkCashBox->getContent() !== 'sama')
|
||||||
{
|
{
|
||||||
return response('kemaskini', 403);
|
return response('kemaskini', 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
$lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/TuntutBaki/resit/' . $auth_user['cawangan'] . '/' . $request->norujukan)->json();
|
$lelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/TuntutBaki/resit/' . $auth_user['cawangan'] . '/' . $request->norujukan)->json();
|
||||||
@@ -124,7 +124,7 @@ class LelongController extends Controller
|
|||||||
$bakiakhir = $baki;
|
$bakiakhir = $baki;
|
||||||
|
|
||||||
if(($bakiakhir < $request->jumlah) && $request->jenis == 'T'){
|
if(($bakiakhir < $request->jumlah) && $request->jenis == 'T'){
|
||||||
return response('Baki tidak mencukupi', 403);
|
return response('Baki tidak mencukupi', 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
$tuntutbaki = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/Tuntutbakisimpan/' . $auth_user['cawangan'], [
|
$tuntutbaki = Http::withOptions(['verify' => config('app.api_verify')])->post(config('api.url') . '/api/Tuntutbakisimpan/' . $auth_user['cawangan'], [
|
||||||
|
|||||||
Reference in New Issue
Block a user