logo科技微讯

欧冠体育赛程检测

作者:科技微讯
日期:2022-03-11
📝 笔记
  • 2024/2025 赛季起,欧冠球队从 32 支增加到 36 支;
  • 每个赛季参加欧冠的球队不一定相同,因为欧冠参赛资格需要竞争获得;

本来打算用百度体育的数据,但是百度返回的比赛数据没有 teamId,比赛双方的名称和其他平台的名称可能不一样(简称、全称),决定还是用腾讯体育的数据。

腾讯体育返回的一场比赛的数据:

const match = {
  liveId: "1358575800",
  tvLiveId: "1358575800",
  isPay: "0",
  iconType: "0",
  isFree: "0",
  userNum: "4157430",
  updateFrequency: "1800",
  isDisabled: "",
  matchLevel: "3",
  coverPicture:
    "http://sports.gtimg.com/shequ/duc2TvpEgSRPRBGlM2T06nZ62acZC6E7Qcr2uAM9ptz8wJGBgOJiaibwSbjb622xZia/0",
  liveSource: "",
  cateId: "1",
  categoryId: "",
  isHot: "1",
  matchInfo: {
    matchType: "1",
    mid: "5:2261863", //5表示欧冠,后面的数组表示欧冠的这场比赛 id
    leftId: "1123", //左队的 id
    leftTeamId: "1:1123",
    leftName: "曼城", //左队的名称
    leftBadge:
      "http://img1.gtimg.com/sports/pics/hv1/18/219/2312/150393663.png",
    leftGoal: "0", //左队的分数
    isLeftTeamAble: "0",
    rightId: "1480", //右队的 id
    rightTeamId: "1:1480",
    rightName: "葡萄牙体育", //右队的名称
    rightBadge:
      "http://f.seals.qq.com/filestore/10006/da/64/87/0/sportlogo/team_1_255.png?v=2",
    rightGoal: "0", //右队的分数
    isRightTeamAble: "0",
    matchDesc: "欧冠1/8决赛", //赛事阶段,赛事名称
    startTime: "2022-03-10 04:00:00", //比赛时间,北京时间
    title: "",
    logo: "",
    matchPeriod: "2", //可能是 0、1、2:0好像是未开始,2好像是结束了,1应该是进行中
    livePeriod: "2",
    quarter: "全场",
    quarterTime: "94'", //比赛时间,94分钟
    liveType: "4",
    lTeamUrl:
      "https://kbsapp.sports.qq.com/team/data?teamId=1123&competitionId=5",
    rTeamUrl:
      "https://kbsapp.sports.qq.com/team/data?teamId=1480&competitionId=5",
    phaseText: "",
    phaseP: "",
    matchInfoVersion: "1646966543",
    groupName: "",
    homeNormalGoal: "0",
    awayNormalGoal: "0",
    homeShootOutGoal: "0",
    awayShootOutGoal: "0",
    isShootOut: "0",
    commentator: "李家成 王晓龙 裴优",
  },
  ifHasPlayback: "1",
  ifHasHighlights: "1",
  programId: "136842",
  cid: "",
  jumpVideoCID: "mzc00200h7htb1n",
  jumpVideoID: "m0042u92aiy",
  ad: {},
  multipleLiveRoom: {},
};
donation赞赏
thumbsup0
thumbsdown0
暂无评论