|
|
@@ -57,6 +57,7 @@ public class EmotionCheckinController {
|
|
|
Long memberId = ParamUtils.getLong(params.get("memberId"), currentMemberId);
|
|
|
int page = params.containsKey("page") ? Integer.parseInt(params.get("page").toString()) : 1;
|
|
|
int size = params.containsKey("size") ? Integer.parseInt(params.get("size").toString()) : 20;
|
|
|
+ // 新模型下 role 不再有 'child',hidePhoto 永远为 false(历史兼容)
|
|
|
boolean hidePhoto = !"child".equals(role);
|
|
|
Object result = emotionCheckinService.getCheckinList(memberId, page, size, userId, hidePhoto);
|
|
|
return Result.success(result);
|
|
|
@@ -68,6 +69,7 @@ public class EmotionCheckinController {
|
|
|
@RequestAttribute("role") String role,
|
|
|
@RequestAttribute(value = "currentMemberId", required = false) Long currentMemberId) {
|
|
|
Long memberId = ParamUtils.getLong(params.get("memberId"), currentMemberId);
|
|
|
+ // 新模型下 role 不再有 'child',hidePhoto 永远为 false(历史兼容)
|
|
|
boolean hidePhoto = !"child".equals(role);
|
|
|
Object result = emotionCheckinService.getLatestCheckin(memberId, userId, hidePhoto);
|
|
|
return Result.success(result);
|