|
@@ -6,10 +6,14 @@ import com.zanxiang.game.data.serve.component.DataPowerComponent;
|
|
|
import com.zanxiang.game.data.serve.pojo.dto.ChoiceListDTO;
|
|
|
import com.zanxiang.game.data.serve.pojo.vo.GameListVO;
|
|
|
import com.zanxiang.game.data.serve.service.IGameListService;
|
|
|
+import com.zanxiang.game.module.base.ServerInfo;
|
|
|
+import com.zanxiang.game.module.base.pojo.vo.GameAuthUserVO;
|
|
|
+import com.zanxiang.game.module.base.rpc.GameAuthRpc;
|
|
|
import com.zanxiang.module.util.JsonUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
import org.nutz.dao.Cnd;
|
|
|
import org.nutz.dao.Dao;
|
|
|
import org.nutz.dao.Sqls;
|
|
@@ -36,6 +40,9 @@ public class GameListServiceImpl implements IGameListService {
|
|
|
@Autowired
|
|
|
private DataPowerComponent dataPowerComponent;
|
|
|
|
|
|
+ @DubboReference(providedBy = ServerInfo.SERVER_DUBBO_NAME)
|
|
|
+ private GameAuthRpc gameAuthRpc;
|
|
|
+
|
|
|
/**
|
|
|
* 游戏列表接口 查看所有游戏、父游戏、超父游戏列表
|
|
|
*
|
|
@@ -44,8 +51,8 @@ public class GameListServiceImpl implements IGameListService {
|
|
|
*/
|
|
|
@Override
|
|
|
public GameListVO getGameList(ChoiceListDTO dto) {
|
|
|
- Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo(dto.getSourceSystem());
|
|
|
- List<Long> gameIds = poerInfo.second;
|
|
|
+ GameAuthUserVO userGameInfo = gameAuthRpc.getGameAuthByUserIds().getData();
|
|
|
+ List<Long> gameIds = dataPowerComponent.getFullGameIdList(userGameInfo.getGameIdList());
|
|
|
log.error("userId:{},下拉框游戏列表gameIds:{}", SecurityUtil.getUserId(),JsonUtil.toString(gameIds));
|
|
|
if (CollectionUtils.isEmpty(gameIds)) {
|
|
|
return null;
|