Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simpkm
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Farendi Giotivano R.P
simpkm
Commits
83d6962e
Commit
83d6962e
authored
Feb 17, 2025
by
Farendi Giotivano R.P
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update fakultas dosen fakultas tanpa nidn dari siakadu
parent
d0ba531b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
12 deletions
+18
-12
app/Http/Controllers/DashboardController.php
+3
-11
app/Http/Controllers/GetDataApiController.php
+15
-1
No files found.
app/Http/Controllers/DashboardController.php
View file @
83d6962e
...
...
@@ -37,21 +37,13 @@ class DashboardController extends Controller
$user
=
Auth
::
user
()
->
rBiodata
->
email
;
$isdm
=
GetDataApiController
::
sso
(
$user
);
$dosen
=
GetDataApiController
::
getDosenPerson
(
$user
);
if
(
$isdm
[
0
]
->
nidn
)
{
$noidentitas
=
$isdm
[
0
]
->
nidn
;
}
else
{
if
(
$isdm
[
0
]
->
nuptk
)
{
$noidentitas
=
$isdm
[
0
]
->
nuptk
;
}
else
{
$noidentitas
=
$isdm
[
0
]
->
userid
;
}
}
$noidentitas
=
$dosen
[
'data'
][
0
][
'nidn'
];
$biodata
=
Biodata
::
where
(
'email'
,
$user
)
->
first
();
if
(
is_null
(
$biodata
->
noidentitas
))
{
if
(
is_null
(
$biodata
->
noidentitas
)
||
empty
(
$biodata
->
noidentitas
)
)
{
$person
[
'noidentitas'
]
=
$noidentitas
;
}
...
...
app/Http/Controllers/GetDataApiController.php
View file @
83d6962e
...
...
@@ -44,7 +44,6 @@ class GetDataApiController extends Controller
return
$data
;
}
public
static
function
sso
(
$email
)
{
$client
=
new
Client
();
...
...
@@ -53,4 +52,19 @@ class GetDataApiController extends Controller
return
$isdm
;
}
public
static
function
getDosenPerson
(
$email
)
{
$client
=
new
Client
();
$apiRequest
=
$client
->
request
(
'POST'
,
GetDataApiController
::
URLS
,
[
'form_params'
=>
[
'kondisi'
=>
'dosen_aktif'
,
'email'
=>
$email
]
]);
return
json_decode
(
$apiRequest
->
getBody
()
->
getContents
(),
true
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment