diff --git a/luoo_music/src/main/java/com/luoo/music/controller/JournalController.java b/luoo_music/src/main/java/com/luoo/music/controller/JournalController.java index 99d800a..d1dc833 100644 --- a/luoo_music/src/main/java/com/luoo/music/controller/JournalController.java +++ b/luoo_music/src/main/java/com/luoo/music/controller/JournalController.java @@ -70,7 +70,7 @@ public class JournalController { @RequestHeader(value = "device_type", required = false) String deviceType, @VerifyParam JournalQueryReq queryReq) { UserLoginDto user = jwtUtil.getUserLoginDto(authorization); - updateQuery(deviceType,user,queryReq); +// updateQuery(deviceType,user,queryReq); Long count = journalService.countJournal(queryReq); if(0==count) { return Result.success(new PageResult(count, Collections.emptyList())); @@ -90,16 +90,16 @@ public class JournalController { private Set getJournalCollectSet(UserLoginDto user) { return null == user ? Collections.emptySet():getJournalCollectSet(user.getUserId()); } - private void updateQuery(String deviceType, UserLoginDto user, JournalQueryReq queryReq) { - if(DeviceTypeUtil.isWeb(deviceType)) { - return; - } - if (StringTools.isEmpty(queryReq.getCategoryId()) && null == user) { - queryReq.setCategoryId(null); - queryReq.setPageNum(1); - queryReq.setPageSize(10); - } - } +// private void updateQuery(String deviceType, UserLoginDto user, JournalQueryReq queryReq) { +// if(DeviceTypeUtil.isWeb(deviceType)) { +// return; +// } +// if (StringTools.isEmpty(queryReq.getCategoryId()) && null == user) { +// queryReq.setCategoryId(null); +// queryReq.setPageNum(1); +// queryReq.setPageSize(10); +// } +// } private Set getJournalCollectSet(String userId) { Set set=(Set) redisTemplate.opsForValue().get(Constants.REDIS_KEY_USER_COLLECT_JOURNAL+userId); if(null==set) { diff --git a/luoo_user/src/main/java/com/luoo/user/config/EnvConfig.java b/luoo_user/src/main/java/com/luoo/user/config/EnvConfig.java index 2db562c..11ed2aa 100644 --- a/luoo_user/src/main/java/com/luoo/user/config/EnvConfig.java +++ b/luoo_user/src/main/java/com/luoo/user/config/EnvConfig.java @@ -27,6 +27,6 @@ public class EnvConfig { private Float permanentMemberDiscount; @ApiModelProperty(value = "不显示专栏的版本号") - private Integer showColumnVersion; + private String showColumnVersion; } diff --git a/luoo_user/src/main/java/com/luoo/user/controller/LoginController.java b/luoo_user/src/main/java/com/luoo/user/controller/LoginController.java index 9554a30..2fa8899 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/LoginController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/LoginController.java @@ -471,7 +471,7 @@ public class LoginController extends BaseController { @ApiOperation(value = "获取不显示专栏的版本号", notes = "获取不显示专栏的版本号") @GetMapping("/showColumnVersion") - public Result showColumnFlag() { + public Result showColumnFlag() { return Result.success(envConfig.getShowColumnVersion()); }