mirror of https://github.com/hykilpikonna/AquaDX
[ongeki] complete choKaikaApi
parent
51cfa629ae
commit
d2bc566a16
|
@ -130,6 +130,7 @@ public class ApiOngekiPlayerDataController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Force insert a card. This will use to create a new card or update a currently existed card star level.
|
* Force insert a card. This will use to create a new card or update a currently existed card star level.
|
||||||
|
*
|
||||||
* @param request Map of aimeId and cardId
|
* @param request Map of aimeId and cardId
|
||||||
* @return result UserCard or error message
|
* @return result UserCard or error message
|
||||||
*/
|
*/
|
||||||
|
@ -202,13 +203,19 @@ public class ApiOngekiPlayerDataController {
|
||||||
if (gameCard.get().getRarity().equals("N")) {
|
if (gameCard.get().getRarity().equals("N")) {
|
||||||
card.setMaxLevel(100);
|
card.setMaxLevel(100);
|
||||||
card.setLevel(100);
|
card.setLevel(100);
|
||||||
|
card.setDigitalStock(11);
|
||||||
} else {
|
} else {
|
||||||
card.setMaxLevel(70);
|
card.setMaxLevel(70);
|
||||||
card.setLevel(70);
|
card.setLevel(70);
|
||||||
|
card.setDigitalStock(5);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
card.setMaxLevel(100);
|
card.setMaxLevel(70);
|
||||||
card.setLevel(100);
|
card.setLevel(70);
|
||||||
|
card.setDigitalStock(5);
|
||||||
|
}
|
||||||
|
if (card.getKaikaDate().equals("0000-00-00 00:00:00.0")) {
|
||||||
|
card.setKaikaDate(LocalDateTime.now().format(df));
|
||||||
}
|
}
|
||||||
card.setChoKaikaDate(LocalDateTime.now().format(df));
|
card.setChoKaikaDate(LocalDateTime.now().format(df));
|
||||||
card.setPrintCount(card.getPrintCount() + 1);
|
card.setPrintCount(card.getPrintCount() + 1);
|
||||||
|
|
Loading…
Reference in New Issue