首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >关于体育电竞直播比分网/app搭建的分享

关于体育电竞直播比分网/app搭建的分享

原创
作者头像
熊猫比分大卫
修改2024-12-05 16:03:58
修改2024-12-05 16:03:58
2160
举报

直播比分网产品的开发,具有以下功能

1、支持四端(苹果、安卓、H5、PC)多语言开发

2、开发语言Java、vue

3、完整源码不加密,一周内交付,支持二开

4、完整开发文档

5、完整IM系统+广告体系(类似QQ)

6、支持主播开播引流及运营

7、 实时数据,指数,实时赛前和赛中胜率数据,赛果结算及异常状态处理

产品功能对标虎牙,斗鱼

以下部分代码分享

public Response<GameMatchSumResponseVo> pcHomeMatchSumV2(@RequestBody GameRequestVo gameRequestVo) {

GameMatchSumResponseVo gameMatchSumResponseVo = new GameMatchSumResponseVo();

List<Long> stampList = getListDayStamp();

Long minStamp = stampList.get(0);

Long maxStamp = stampList.get(3);

List<Match> matchesDB = matchService.getMatchesByGameIdsAndStartTimeAndStatuses(null, MatchStatus.getNormalValue(), minStamp, maxStamp);

if (CollUtil.isEmpty(matchesDB))

return Response.SUCCESS(gameMatchSumResponseVo);

if (CollUtil.isEmpty(gameRequestVo.getGameId())) {

List<RecommendMatchDTO> type = recommendMatchCache.getType(RecommendType.recommend_tab);

List<League> leagues = leagueService.recommendLeagues(type);

matchesDB = matchesDB.stream()

.filter(match -> leagues.stream()

.anyMatch(league -> Objects.equals(league.getGameId(), match.getGameId()) &&

Objects.equals(league.getLeagueId(), match.getLeagueId())))

.collect(Collectors.toList());

} else {

matchesDB = matchesDB.stream().filter(r -> gameRequestVo.getGameId().contains(r.getGameId())).collect(Collectors.toList());

}

int yesterdayMatch = (int) matchesDB.stream().filter(m -> m.getStartTime() >= stampList.getFirst() && m.getStartTime() < stampList.get(1)).count();

int todayMatch = (int) matchesDB.stream().filter(m -> m.getStartTime() >= stampList.get(1) && m.getStartTime() < stampList.get(2)).count();

int tomorrowMatch = (int) matchesDB.stream().filter(m -> m.getStartTime() >= stampList.get(2) && m.getStartTime() < stampList.get(3)).count();

gameMatchSumResponseVo.setYesterdayMatchTotal(yesterdayMatch);

gameMatchSumResponseVo.setTodayMatchTotal(todayMatch);

gameMatchSumResponseVo.setTomorrowMatchTotal(tomorrowMatch);

return Response.SUCCESS(gameMatchSumResponseVo);

}

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档