Penambahan Sementara Pengajuan Presensi WhatsApp
This commit is contained in:
@@ -56,6 +56,13 @@ class DawaiService
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function isAtasanDari(string $nipAtasan, string $nipBawahan): bool
|
||||
{
|
||||
$bawahan = $this->getListBawahan($nipAtasan)['data']['bawahan'] ?? [];
|
||||
|
||||
return in_array($nipBawahan, array_column($bawahan, 'nip'), true);
|
||||
}
|
||||
|
||||
public function isVerifikatorTriDharma(string $nip)
|
||||
{
|
||||
try {
|
||||
@@ -88,7 +95,7 @@ class DawaiService
|
||||
public function listPegawai(string $nip = '', string $jenisPegawai = '', string $email = ''): array
|
||||
{
|
||||
try {
|
||||
$response = $this->client->get("api/v1/pegawai?jenis_pegawai=$jenisPegawai&nip=$nip&email=$email&asn=true&pensiun=0&wafat=0&mutkel=0&nonaktif=0");
|
||||
$response = $this->client->get("api/v1/pegawai?jenis_pegawai=$jenisPegawai&nip=$nip&email=$email&asn=true&pensiun=0&wafat=0&mutkel=0&nonaktif=0&privasi=true");
|
||||
$data = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
return $data;
|
||||
|
||||
Reference in New Issue
Block a user