节假日查询接口

admin 提交于 周五, 12/06/2019 - 14:53

节假日采用以下接口:
​http://www.easybots.cn/api/holiday.php?m=201912,202001
工作日对应结果为 0, 休息日对应结果为 1, 节假日对应的结果为 2
输出结果:

{"201912":{"01":"1","07":"1","08":"1","14":"1","15":"1","21":"1","22":"1","28":"1","29":"1"},"202001":{"01":"2","04":"1","05":"1","11":"1","12":"1","18":"1","24":"1","25":"2","26":"2","27":"2","28":"1","29":"1","30":"1"}}

候选接口:​http://api.goseek.cn/ ,此接口以天为参数,查询效率比较低。

添加新评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"汉语"