feat: chusan bs
Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled

This commit is contained in:
Raymond
2026-06-28 19:43:50 -04:00
parent 853abc8867
commit fcee9fb278
3 changed files with 6 additions and 1 deletions

View File

@@ -281,7 +281,7 @@ fun ChusanController.chusanInit() {
"playerLevel" to option?.playerLevel,
"rating" to option?.rating,
"headphone" to option?.headphone,
"chargeState" to 1, "userNameEx" to "", "banState" to 0,
"chargeState" to 1, "userNameEx" to "", "banState" to user.banState,
) + userDict
if (user.card?.status == CardStatus.MIGRATED_TO_MINATO) {

View File

@@ -82,6 +82,9 @@ class Chu3UserData : BaseEntity(), IUserData {
@JsonIgnore
var lastLoginDate: LocalDateTime = LocalDateTime.now()
@JsonIgnore
var banState: Int = 0
@JsonDeserialize(using = FlexibleDateTimeDeserializer::class)
override var lastPlayDate: LocalDateTime = LocalDateTime.now()
var lastPlaceId = 0

View File

@@ -0,0 +1,2 @@
ALTER TABLE chusan_user_data
ADD ban_state INT NOT NULL DEFAULT 0;