mirror of https://github.com/hykilpikonna/AquaDX
[chuni] minor API changes related to standard course
parent
6f1493ded1
commit
375823a21e
|
@ -39,13 +39,13 @@ public class GetUserFavoriteItemHandler implements BaseHandler {
|
|||
|
||||
Map<String, Object> resultMap = new LinkedHashMap<>();
|
||||
resultMap.put("userId", userId);
|
||||
resultMap.put("kind", kind);
|
||||
resultMap.put("length", 0);
|
||||
resultMap.put("nextIndex", 0);
|
||||
resultMap.put("userFavoriteMusicList", List.of());
|
||||
resultMap.put("kind", kind);
|
||||
resultMap.put("nextIndex", -1);
|
||||
resultMap.put("userFavoriteItemList", List.of());
|
||||
|
||||
String json = mapper.write(resultMap);
|
||||
logger.debug("Response: " + json);
|
||||
logger.info("Response: " + json);
|
||||
return json;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public class GetUserFavoriteMusicHandler implements BaseHandler {
|
|||
resultMap.put("userFavoriteMusicList", List.of());
|
||||
|
||||
String json = mapper.write(resultMap);
|
||||
logger.debug("Response: " + json);
|
||||
logger.info("Response: " + json);
|
||||
return json;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ public class GetUserLoginBonusHandler implements BaseHandler {
|
|||
resultMap.put("userLoginBonusList", List.of());
|
||||
|
||||
String json = mapper.write(resultMap);
|
||||
logger.debug("Response: " + json);
|
||||
logger.info("Response: " + json);
|
||||
return json;
|
||||
}
|
||||
}
|
|
@ -103,6 +103,9 @@ public class GetUserPreviewHandler implements BaseHandler {
|
|||
resp.setHeadphone(userGameOption.getHeadphone());
|
||||
});
|
||||
|
||||
resp.setChargeState(0);
|
||||
resp.setUserNameEx(user.getUserName());
|
||||
|
||||
String json = mapper.write(resp);
|
||||
logger.info("Response: " + json);
|
||||
return json;
|
||||
|
|
|
@ -25,13 +25,22 @@ public class GetUserTeamHandler implements BaseHandler {
|
|||
@Override
|
||||
public String handle(Map<String, Object> request) throws JsonProcessingException {
|
||||
String userId = (String) request.get("userId");
|
||||
String playDate = (String) request.get("playDate");
|
||||
|
||||
Map<String, Object> resultMap = new LinkedHashMap<>();
|
||||
resultMap.put("userId", userId);
|
||||
resultMap.put("teamId", 1);
|
||||
resultMap.put("teamRank", 1);
|
||||
resultMap.put("teamName", "ParadiseLeakWhen");
|
||||
resultMap.put("userTeamPoint", 114514);
|
||||
resultMap.put("teamId", 0);
|
||||
resultMap.put("teamRank", 0);
|
||||
resultMap.put("teamName", "");
|
||||
|
||||
Map<String, Object> userTeamMap = new LinkedHashMap<>();
|
||||
userTeamMap.put("userId", userId);
|
||||
userTeamMap.put("teamId", 0);
|
||||
userTeamMap.put("orderId", 0);
|
||||
userTeamMap.put("teamPoint", 0);
|
||||
userTeamMap.put("aggrDate", playDate);
|
||||
|
||||
resultMap.put("userTeamPoint", userTeamMap);
|
||||
|
||||
String json = mapper.write(resultMap);
|
||||
logger.info("Response: " + json);
|
||||
|
|
|
@ -34,5 +34,7 @@ public class GetUserPreviewResp {
|
|||
private int playerLevel;
|
||||
private int rating;
|
||||
private int headphone;
|
||||
private int chargeState;
|
||||
private String userNameEx;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue