多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**请求URL:** - ` http://tool.bitefu.net/jiari/ ` **请求方式:** - POST , GET **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |d |是 |string |日期 | |back |否 |string |返回格式(json) | |info | 否 |int |返回详细信息(适用单日期) | **返回示例** - 检查一个日期是否为节假日 ?d=20180101 ``` 2 ``` **返回参数说明** |类型|说明| |:-----|----- | |int |0工作日 1 假日 2节日 | - 检查一个日期是否为节假日 ?d=20190101&back=json ``` { "20190101" : "2" } ``` **返回参数说明** |类型|说明| |:-----|----- | |json |0工作日 1 假日 2节日 | - 检查一个日期是详细信息 ?d=20190101&info=1 ``` { "status": 1, "type": 1, "day": "20190728", "unixtime": 1532707200, "yearname": "戊戌", "nonglicn": "六月十六", "nongli": "6-16", "shengxiao": "狗", "jieqi": "大暑后", "weekcn": "六", "week1": "Sat", "week2": "6", "week3": "Saturday", "daynum": "208", "weeknum": "30" } ``` **返回参数说明** |类型|说明| |:-----|----- | |status |0 失败 1 成功 | |type |0工作日 1 假日 2节日 | |day |年月日 | |unixtime |unix时间戳 | |yearname |农历年 | |nonglicn |农历月日(中文) | |nongli |农历月日 | |shengxiao |生肖 | |jieqi |节气 | |weekcn |星期(中文) | |week1 |星期(简写) | |week2 |星期(数字) | |week3 |星期(英文) | |daynum |一年中第几天 | |weeknum |一年中第几周 | - 检查多个日期是否为节假日 ?d=20190101,20190103,20190105,20191201 ``` { "20190101" : "2", "20190103" : "0", "20190105" : "0", "20191201" : "1" } ``` **返回参数说明** |类型|说明| |:----- |:-----|----- | |json |具体数据(0,1,2) | - 获取10月份节日 ?d=201910 加参数 &info=1 或获取该月所有信息的详情,内容和单日期相同.不过数据量较大慎重使用. ``` { "201910" : { "1001" : "2", "1002" : "2", "1003" : "2", "1004" : "1", "1005" : "1", "1006" : "1", "1007" : "1" } } ``` **返回参数说明** |类型|说明| |:-----|-----| |json |具体数据(0,1,2) | - 获取2019年所有节日 ?d=2019 ``` { "2019" : { "1001" : "2", "1002" : "2", "1003" : "2", "1004" : "1", "1005" : "1", "1006" : "1", "1007" : "1", "0101" : "2", "0215" : "1", "0216" : "2", "0217" : "2", "0218" : "2", "0219" : "1", "0220" : "1", "0221" : "1", "0405" : "2", "0406" : "1", "0407" : "1", "0429" : "1", "0430" : "1", "0501" : "2", "0616" : "1", "0617" : "1", "0618" : "2", "0922" : "1", "0923" : "1", "0924" : "2" } } ``` **返回参数说明** |类型|说明| |:-----|-----| |json |具体数据(0,1,2) | - 获取1/2月份节日 ?d=201901,201902 ``` { "201901" : { "0101" : "2" }, "201902" : { "0215" : "1", "0216" : "2", "0217" : "2", "0218" : "2", "0219" : "1", "0220" : "1", "0221" : "1" } } ``` **返回参数说明** |类型|说明| |:-----|-----| |json |具体数据(0,1,2) |