Skip to content

feat: Dota2 战队最新比赛结果#6005

Merged
HenryQW merged 6 commits into
DIYgod:masterfrom
wzekin:master
Oct 30, 2020
Merged

feat: Dota2 战队最新比赛结果#6005
HenryQW merged 6 commits into
DIYgod:masterfrom
wzekin:master

Conversation

@wzekin

@wzekin wzekin commented Oct 26, 2020

Copy link
Copy Markdown
Contributor

完整路由地址 / Example for the proposed route(s)

  • /liquipedia/dota2/matches/Team_Aster

@vercel

vercel Bot commented Oct 26, 2020

Copy link
Copy Markdown

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/diy/rsshub/6dk5j0fym
✅ Preview: https://rsshub-git-master.diy.vercel.app

Comment thread lib/routes/liquipedia/dota2_matches.js Outdated
description: `At ${tournament}, ${team} ${score} ${vs_team}`,
pubDate: date_time,
link: url,
guid: date_time,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guid默认为link,没有必要赋值。设置成时间可能会导致缓存冲突。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

但link不是唯一的,而datetime可以保证是唯一的

@HenryQW HenryQW Oct 30, 2020

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果datetime和其他源的datetime冲突了呢?所以不接受datetime作为guid。
link不是唯一的情况下,可以用link+datetime解决。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

缓存策略我不大了解,已经修改了

@HenryQW HenryQW changed the title feat: Dota2战队最新比赛结果 feat: Dota2 战队最新比赛结果 Oct 30, 2020
@HenryQW HenryQW merged commit 10d0e0b into DIYgod:master Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants