[+] SDGA 1.65 / SDGB 1.53 playlog fix

This commit is contained in:
Azalea 2026-08-05 15:53:29 -04:00
parent 3be81520ce
commit 85544d3cee
No known key found for this signature in database
2 changed files with 7 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class UpsertUserAllHandler(
listOfNotNull(
userExtend, userOption, userCharacterList, userMapList, userLoginBonusList, userItemList,
userMusicDetailList, userCourseList, userFriendSeasonRankingList, userFavoriteList,
userKaleidxScopeList, userIntimateList
userKaleidxScopeList, userIntimateList, upsertUserAll.userPlaylogList
)
}.flatten().forEach { it.user = u }
@ -142,6 +142,9 @@ class UpsertUserAllHandler(
repos.userIntimate.saveAll(lst.mapApply {
id = repos.userIntimate.findByUserAndPartnerId(u, partnerId)?.id ?: 0 }) }
// Added on SDGA 1.65 / SDGB 1.53
upsertUserAll.userPlaylogList?.let(repos.userPlaylog::saveAll)
// 2024/10/31 Found some user data findByUserAndKindAndActivityId is not unique
// I think userActivityList is not important, so I will ignore it
try {

View File

@ -5,7 +5,9 @@ import icu.samnyan.aqua.sega.maimai2.model.userdata.*
class Mai2UpsertUserAll(
var userId: Long,
var upsertUserAll: Mai2UserAll
var upsertUserAll: Mai2UserAll,
var userPlaylogList: List<Mai2UserPlaylog>? = null, // SDGA 1.65 / SDGB 1.53
)
class Mai2UserAll {