|
|
@@ -73,7 +73,7 @@ public class UserBenefitsFrontController {
|
|
|
* 权益分类
|
|
|
*/
|
|
|
@GetMapping("/get/classification")
|
|
|
- public Result<Map<UserBenefits.Type, List<UserBenefitsFrontView>>> getUserBenefitsClassification(Boolean mobile) {
|
|
|
+ public Result<Map<UserBenefits.Type, List<UserBenefitsFrontView>>> getUserBenefitsClassification() {
|
|
|
String key = RedisService.key.USER_BENEFITS_KEY.getName() + ":cfc";
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
Object o = redisService.get(key);
|
|
|
@@ -86,10 +86,8 @@ public class UserBenefitsFrontController {
|
|
|
} else {
|
|
|
classifications = (Map<UserBenefits.Type, List<UserBenefitsFrontView>>) o;
|
|
|
}
|
|
|
- if (mobile != null && mobile) {
|
|
|
- List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
- classifications.values().forEach(list -> setDataInfo(list, null, userIdList, true));
|
|
|
- }
|
|
|
+ List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
+ classifications.values().forEach(list -> setDataInfo(list, null, userIdList, true));
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(classifications);
|
|
|
}
|
|
|
|