mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 06:27:26 +08:00
[F] Fix maimai2 events
This commit is contained in:
@@ -44,7 +44,7 @@ public class GetGameEventHandler implements BaseHandler {
|
|||||||
resultMap.put("gameEventList", gameEventList);
|
resultMap.put("gameEventList", gameEventList);
|
||||||
|
|
||||||
String json = mapper.write(resultMap);
|
String json = mapper.write(resultMap);
|
||||||
logger.info("Response: " + json);
|
logger.info("Response: {} events", gameEventList.size());
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,9 +48,10 @@ class GetUserRatingHandler(
|
|||||||
|
|
||||||
ur.udemae = repos.userUdemae.findSingleByUser_Card_ExtId(userId)() ?: Mai2UserUdemae()
|
ur.udemae = repos.userUdemae.findSingleByUser_Card_ExtId(userId)() ?: Mai2UserUdemae()
|
||||||
|
|
||||||
val resultMap: MutableMap<String, Any> = LinkedHashMap()
|
val resultMap = mapOf(
|
||||||
resultMap["userId"] = userId
|
"userId" to userId,
|
||||||
resultMap["userRating"] = ur
|
"userRating" to ur
|
||||||
|
)
|
||||||
|
|
||||||
val json = mapper.write(resultMap)
|
val json = mapper.write(resultMap)
|
||||||
logger.info("Response: $json")
|
logger.info("Response: $json")
|
||||||
|
|||||||
@@ -11,12 +11,12 @@ import java.time.LocalDateTime
|
|||||||
@Data @Entity
|
@Data @Entity
|
||||||
@Table(name = "maimai2_game_event")
|
@Table(name = "maimai2_game_event")
|
||||||
class Mai2GameEvent : BaseEntity() {
|
class Mai2GameEvent : BaseEntity() {
|
||||||
private val type = 0
|
var type = 0
|
||||||
private val startDate: String? = null
|
var startDate: String? = null
|
||||||
private val endDate: String? = null
|
var endDate: String? = null
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
private val enable = false
|
var enable = false
|
||||||
}
|
}
|
||||||
|
|
||||||
@Data @Entity
|
@Data @Entity
|
||||||
@@ -33,9 +33,9 @@ class Mai2GameCharge : BaseEntity() {
|
|||||||
@Data @Entity
|
@Data @Entity
|
||||||
@Table(name = "maimai2_game_selling_card")
|
@Table(name = "maimai2_game_selling_card")
|
||||||
class Mai2GameSellingCard : BaseEntity() {
|
class Mai2GameSellingCard : BaseEntity() {
|
||||||
private val cardId = 0L
|
var cardId = 0L
|
||||||
private val startDate: LocalDateTime? = null
|
var startDate: LocalDateTime? = null
|
||||||
private val endDate: LocalDateTime? = null
|
var endDate: LocalDateTime? = null
|
||||||
private val noticeStartDate: LocalDateTime? = null
|
var noticeStartDate: LocalDateTime? = null
|
||||||
private val noticeEndDate: LocalDateTime? = null
|
var noticeEndDate: LocalDateTime? = null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user