Skip to content

Commit

Permalink
omg
Browse files Browse the repository at this point in the history
  • Loading branch information
lhwdev committed May 5, 2022
1 parent b9898f6 commit 7a561f2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions api/src/main/kotlin/com/lhwdev/selfTestMacro/api/findUser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,23 @@ suspend fun Session.findUser(
"Accept" to "application/json, text/plain, */*"
),
body = Bodies.jsonObject {
"birthday" set encryptedBirthday
"deviceUuid" set ""
if(institute.schoolLevelCode != null) {
"lctnScCode" set institute.schoolLevelCode
}
"loginType" set institute.loginType.name
"makeSession" set makeSession
"name" set encryptedName
"orgCode" set institute.info.encryptedCode
"orgName" set institute.info.name
"password" set raonPassword
"searchKey" set searchKey.key
if(pageNumber == null) {
"stdntPNo" set null
} else {
"stdntPNo" set pageNumber
}
}
).getText()

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/lhwdev/selfTestMacro/utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ data class UserLoginInfo(
name = info.institute.info.name
)
val result = session.findUser(
institute = institute,
institute = instituteNew.list.single(),
searchKey = instituteNew.searchKey,
userQuery = userQuery,
password = password
Expand Down

0 comments on commit 7a561f2

Please sign in to comment.