Giter Site home page Giter Site logo

Comments (3)

nczitzk avatar nczitzk commented on May 31, 2024 2

@nczitzk 谢谢大佬的出手~

@ruleroller 客气了。根据你的建议和 App Store 提供的数据,我选择的方案如下。

/apple/apps/update/:country/:id 的基础上添加可选的 platform 参数,即路由变更为 /apple/apps/update/:country/:id/:platform?。其中,platform 参数可选 iOSmacOStvOS,即获取指定平台的更新内容。该参数留空则获取全部平台的更新内容。

在路由变更的基础上,我对获取条目的标题和分类也做了更改。其中,标题末尾加入 for <platform>,分类设定为 <platform> 分类。如此指明该更新内容条目针对的是何种平台,可以方便用户根据标题或分类进行筛选。

另外,“适用于多个平台的同一版本更新”在 App Store 的数据源中会分别罗列在每个平台的更新内容中,所以理应不会出现被筛选遗漏的情况。

from rsshub.

nczitzk avatar nczitzk commented on May 31, 2024 1

/wip

from rsshub.

ruleroller avatar ruleroller commented on May 31, 2024

@nczitzk 谢谢大佬的出手~

也请考虑到可能一个更新是适用于多个平台的,比如同时可用于iOS以及tvOS等,不知道这种情况时有什么优雅的方法能够体现出来。这样的话,好像路由里加参数好像更适用一些,也就是我的建议二的方法。 踌躇了,不管如何,只要能实现分类提醒都是好的。

from rsshub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.