2021-2022 CBA 赛季比赛规则。
CBA 球队 20 支,赛事分为三个阶段:
CBA 通常是 10 月开赛,第二年 5 月结束。
在 CBA 的微信小程序找到线索。
const url = `https://mini.cbaleague.com/cba/api/getdayschedule?days=2022-03-06&random=61&leagueid=401&customer=cbaxcx&key=cbaxcx&encrypted=de86b21a067875c4137c92f320d99815`;
//拿到的数据,大部分字段是重复的,只是开头的大小写有区别
//不知道哪个字段代表「常规赛」、「季后赛」?
const data = {
nid: 1541, //不确定是干嘛的,但常规赛和季后赛分别每场比赛 +1,常规赛和季后赛数字起点不一样
dates: "2022-03-06", //比赛日期
mon: "03",
day: "06",
time: "11:00", //北京时间
Quarter: 4,
VisitingTeamENName: "NING BO",
StatusCNName: "已完赛", //比赛状态
VisitingTeamID: 100074683, //客场队伍 ID,ID 应该不会变
HomeTeamID: 29134, //主场队伍 ID
ScheduleID: 100077088, //比赛 ID?
Minutes: 0,
ScheduleTypeID: 1, //基本确定 1是常规赛,2是季后赛,3是季前赛,全明星、星锐赛没有这个字段
HomeTeamCNName: "福建鲟浔兴俱乐部福建浔兴股份篮球队",
ChiefReferee: "姜志远",
TechnicalDelegate: "夏春",
Round: 31, //第几轮的意思,结合 ScheduleTypeID 可以判断是常规赛和季后赛的第几轮,季前赛不分多少轮,round 总是 0
stadium: "佛山国际体育文化演艺馆", //比赛场地
VisitingTeamName: "宁波甬兴证券", //客场中文名字
Season: 2021, //赛季
VisitingTeamScore: 111, //客场得分
Status: 4, //比赛状态,4 表示已完赛,和 StatusCNName 对应
AssistantReferee1: "余尾",
MatchGTM8Time: "2022-03-06 11:00:00", //具体的比赛时间,GTM8 北京时间
TimeTBAState: 0,
VisitingTeamCNName: "宁波富邦火箭俱乐部甬兴证券篮球队",
HomeTeamENAlias: "FJS",
HomeTeamName: "福建浔兴股份", //主场中文名字
HomeTeamCBAID: "Te013",
VisitingTeamENAlias: "NBR",
HomeTeamScore: 117, //主场得分
MatchOrder: 305, //可能是常规赛的第几场比赛?貌似 1 轮 10 场比赛,现在是 31 轮
Seconds: 0.0,
HomeSmallLogo: "",
AssistantReferee2: "刘华波",
LeagueID: 401,
HomeTeamENName: "FU JIAN",
minutes: 0,
seconds: 0.0,
round: 31,
scheduleTypeID: 1,
scheduleID: 100077088,
visitingTeamID: 100074683,
homeTeamCNName: "福建鲟浔兴俱乐部福建浔兴股份篮球队",
chiefReferee: "姜志远",
technicalDelegate: "夏春",
visitingTeamName: "宁波甬兴证券",
visitingTeamScore: 111,
assistantReferee1: "余尾",
matchGTM8Time: 1646535600000,
timeTBAState: 0,
visitingTeamCNName: "宁波富邦火箭俱乐部甬兴证券篮球队",
homeTeamENAlias: "FJS",
homeTeamName: "福建浔兴股份",
homeTeamCBAID: "Te013",
visitingTeamENAlias: "NBR",
homeTeamScore: 117,
matchOrder: 305,
homeSmallLogo: "",
assistantReferee2: "刘华波",
homeTeamENName: "FU JIAN",
visitingTeamENName: "NING BO",
statusCNName: "已完赛",
homeTeamID: 29134,
season: 2021,
status: 4,
quarter: 4,
leagueID: 401,
};