mirror of https://github.com/hykilpikonna/AquaDX
[+] Verse: Save rating
parent
b0392cd3e6
commit
6e6adb8caa
|
@ -42,8 +42,11 @@ fun ChusanController.upsertApiInit() {
|
|||
fun Iterable<UserRecentRating>.str() = joinToString(",") { "${it.musicId}:${it.difficultId}:${it.score}" }
|
||||
|
||||
ls(
|
||||
userRecentRatingList to "recent_rating_list", userRatingBaseList to "rating_base_list",
|
||||
userRatingBaseHotList to "rating_hot_list", userRatingBaseNextList to "rating_next_list",
|
||||
userRecentRatingList to "recent_rating_list",
|
||||
userRatingBaseList to "rating_base_list",
|
||||
userRatingBaseHotList to "rating_hot_list",
|
||||
userRatingBaseNextList to "rating_next_list",
|
||||
userRatingBaseNewList to "rating_new_list"
|
||||
).filter { it.first != null }.forEach { (list, key) ->
|
||||
val d = db.userGeneralData.findByUserAndPropertyKey(u, key)()
|
||||
?: UserGeneralData().apply { user = u; propertyKey = key }
|
||||
|
|
|
@ -54,6 +54,7 @@ class UpsertUserAll(
|
|||
var userRatingBaseHotList: List<UserRecentRating>? = null,
|
||||
var userRatingBaseList: List<UserRecentRating>? = null,
|
||||
var userRatingBaseNextList: List<UserRecentRating>? = null,
|
||||
var userRatingBaseNewList: List<UserRecentRating>? = null,
|
||||
var userLoginBonusList: List<JDict>? = null,
|
||||
var userMapAreaList: List<UserMap>? = null,
|
||||
var userOverPowerList: List<JDict>? = null,
|
||||
|
|
Loading…
Reference in New Issue