Pengguna Aplikasi PBB (poin 9) - Halaman OpenSID #369
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Perbaikan issue :
Perbaikan pada OpenSID https://github.com/OpenSID/premium/pull/3973
Perbaikan pada PBB https://github.com/OpenSID/pbb_desa/pull/228
Perlu penyesuaian pada aplikasi PBB, agar aplikasi PBB kirim data ke pantau
Ada penambahan tabel, lakukan
php artisan migrate
terlebih dahulutrackpbb.php
`<?php
$curl = curl_init();
$serverPantau = 'http://localhost:8000';
curl_setopt_array($curl, array(
CURLOPT_URL => $serverPantau.'/api/track/pbb?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6bnVsbCwidGltZXN0YW1wIjoxNjAzNDY2MjM5fQ.HVCNnMLokF2tgHwjQhSIYo6-2GNXB4-Kf28FSIeXnZw',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"nama_desa": "Damarwulan",
"kode_desa": "35.06.18.2010",
"kode_pos": "83355",
"nama_kecamatan": "Kepung",
"kode_kecamatan": "35.06.18",
"nama_kabupaten": "Kediri",
"kode_kabupaten": "35.06",
"nama_provinsi": "Jawa Timur",
"kode_provinsi": "35",
"url": "https://pbb.damarwulan.com/",
"versi": "2405.0.0"
}',
CURLOPT_HTTPHEADER => array(
'Accept: application/json',
'Authorization: Bearer {{token}}',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;`
Screencast.from.31-07-24.15.47.18.webm
Screencast.from.01-08-24.07.24.18.webm