Fix collection_id billplz, remove test api

This commit is contained in:
Amir
2022-12-06 13:02:48 +08:00
parent 4427cf9163
commit d93d99db3b
3 changed files with 10 additions and 76 deletions
+2 -2
View File
@@ -58,11 +58,11 @@ class ApiController extends Controller
if(config('app.env') != 'production'){
$this->api_key = 'abecfd0c-98d8-4635-abc2-2fcba8c60c11';
$this->XSignature_Key = 'S-GWr7z03XjAhqPsFfu_H5nQ';
$this->collection_id = 'bwdtejv0';
$this->collection_id = 'drxdyor4';
}else{
$this->api_key = 'f3e82fe1-a422-4660-97f0-65cc59ff6c47';
$this->XSignature_Key = 'S-alZUbzmD2_TF3vmrRqgehQ';
$this->collection_id = 'drxdyor4';
$this->collection_id = 'lx_bplsb';
}
}
+8 -15
View File
@@ -31,25 +31,18 @@ class DatabaseController extends Controller
public function index()
{
$caw = Cawangan::all();
// $user = Auth::user();
// $user->assignRole('admin');
//db cawangan - success
//db online_arrahn - success
//api_kaunter - success
//api_arrahn
$gadai = Gadai::on('KB2')->orderBy('t_gadai', 'DESC')->first();
$transaksi_keuntungan = TransaksiKeuntungan::on('main')->orderBy('id', 'DESC')->first();
$roles_harian_penilai = Http::get(config('app.api_url_kaunter') . 'api/roles_harian/KB2', [
'role_harian' => 'penilai',
])->json();
$customer_details = Http::withOptions(['verify' => config('app.api_verify')])
->get('http://api.arrahn.com.my/api/customers/960403065465')->json();
// $gadai = Gadai::on('KB2')->orderBy('t_gadai', 'DESC')->first();
// $transaksi_keuntungan = TransaksiKeuntungan::on('main')->orderBy('id', 'DESC')->first();
// $roles_harian_penilai = Http::get(config('app.api_url_kaunter') . 'api/roles_harian/KB2', [
// 'role_harian' => 'penilai',
// ])->json();
// $customer_details = Http::withOptions(['verify' => config('app.api_verify')])
// ->get('http://api.arrahn.com.my/api/customers/960403065465')->json();
// dd($gadai, $transaksi_keuntungan, $roles_harian_penilai, $customer_details);
return view('pengurusandatabase.senaraidb',compact('caw', 'gadai', 'transaksi_keuntungan', 'roles_harian_penilai', 'customer_details'));
return view('pengurusandatabase.senaraidb',compact('caw'));
}
public function showConn($id)
@@ -50,65 +50,6 @@
</table>
</form>
<div>db cawangan</div>
<table class="table table-bordered" style="width: 35%;">
<tbody>
<tr class="bg-light">
<td>gadai latest KB2</td>
<td>t_gadai</td>
</tr>
<tr>
<td>{{$gadai->norujukan}}</td>
<td>{{$gadai->t_gadai}}</td>
</tr>
</tbody>
</table>
<div>db online_arrahn</div>
<table class="table table-bordered" style="width: 35%;">
<tbody>
<tr class="bg-light">
<td>bayar latest</td>
<td>tarikh_bayaran</td>
</tr>
<tr>
<td>{{$transaksi_keuntungan->norujukan}}</td>
<td>{{$transaksi_keuntungan->tarikh_bayaran}}</td>
</tr>
</tbody>
</table>
<div>api_kaunter</div>
<table class="table table-bordered" style="width: 35%;">
<tbody>
<tr class="bg-light">
<td>role_harian KB2</td>
<td>name</td>
</tr>
@if(!empty($roles_harian_penilai))
<tr>
<td>{{$roles_harian_penilai[0]['role_harian']}}</td>
<td>{{$roles_harian_penilai[0]['name']}}</td>
</tr>
@else
<tr>
<td colspan="2">pc belum set role harian</td>
</tr>
@endif
</tbody>
</table>
<div>api_arrahn</div>
<table class="table table-bordered" style="width: 35%;">
<tbody>
<tr class="bg-light">
<td>customer details(name)</td>
<td>(ic)</td>
</tr>
<tr>
<td>{{$customer_details['nama']}}</td>
<td>{{$customer_details['kpbaru']}}</td>
</tr>
</tbody>
</table>
</div>
</div>