Commit a92c3666 authored by zhangfeng's avatar zhangfeng

客户端获取礼品信息修改

parent 4ab45806
......@@ -421,10 +421,13 @@ public class RewardServiceImpl extends AbstractService<RewardMapper, RewardDO> i
nodes = nodeApi.getNodesByCity(null, 130L);
} else {
nodes = nodeApi.getNodesByCity(user.getCity().longValue(), null);
if (CollectionUtil.isEmpty(nodes)) {
nodes = nodeApi.getNodesByCity(null, user.getCountry().longValue());
}
}
if (CollectionUtil.isNotEmpty(nodes)) {
return nodes.stream().map(NodeRespDTO::getId).collect(Collectors.toList());
if (CollectionUtil.isEmpty(nodes)) {
nodes = nodeApi.getNodesByCity(null, 130L);
}
return Collections.emptyList();
return nodes.stream().map(NodeRespDTO::getId).collect(Collectors.toList());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment