mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 20:12:39 +00:00
[+] Wacca: user/status/update
This commit is contained in:
parent
0551f8bff1
commit
373e7dc8ad
@ -292,6 +292,22 @@ fun WaccaServer.init() {
|
||||
|
||||
empty
|
||||
}
|
||||
|
||||
"user/status/update" { req, (uid, playType, items, isContinue, isFirstPlayFree, itemsUsed, lastSong) ->
|
||||
val u = user(uid) ?: (404 - "User not found")
|
||||
rp.user.save(u.apply {
|
||||
playCounts[playType.int() - 1]++
|
||||
|
||||
addItems(items as List<List<Int>>, u, itmGrp(u))
|
||||
|
||||
lastSongInfo = (lastSong as List<Int>).toMutableList()
|
||||
lastGameVer = req.appVersion
|
||||
|
||||
// TODO: Add icon and nav items
|
||||
})
|
||||
|
||||
empty
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user