八字测算
<p>[TOC]</p>
<h3>接口描述</h3>
<ul>
<li>八字,即生辰八字,是一个人出生时的干支历日期。年干和年支组成年柱,月干和月支组成月柱,日干和日支组成日柱,时干和时支组成时柱,一共四柱,四个干和四个支共八个字,故又称四柱八字。是命理研究方法之中最正统的一种。并在此基础上,结合古籍测算出骨相,五行,姻缘,财运,基本信息。</li>
</ul>
<h3>请求地址</h3>
<p><code>https://api.jumdata.com/horoscope/measurement</code></p>
<h3>请求方式</h3>
<ul>
<li>POST</li>
</ul>
<h3>请求格式</h3>
<ul>
<li>x-www-form-urlencoded</li>
</ul>
<h3>请求参数</h3>
<table>
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必须</th>
<th><div style="width:400px">说明</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>appId</td>
<td>String</td>
<td>是</td>
<td>服务商分配的唯一标识</td>
</tr>
<tr>
<td>timestamp</td>
<td>Long</td>
<td>是</td>
<td>当前时间戳(毫秒数)</td>
</tr>
<tr>
<td>sign</td>
<td>String</td>
<td>是</td>
<td>签名,详见签名算法说明</td>
</tr>
<tr>
<td>name</td>
<td>String</td>
<td>是</td>
<td>姓名</td>
</tr>
<tr>
<td>sex</td>
<td>String</td>
<td>是</td>
<td>性别 0:男 1:女</td>
</tr>
<tr>
<td>type</td>
<td>String</td>
<td>是</td>
<td>历类型 0:农历 1:公历</td>
</tr>
<tr>
<td>birthDay</td>
<td>String</td>
<td>是</td>
<td>出生年月日时分 格式yyyyMMddHHmm 譬如202509132155 </td>
</tr>
<tr>
<td>sect</td>
<td>String</td>
<td>否</td>
<td>流派 例:1:晚子时日柱算明天 2:晚子时日柱算当天 默认:1</td>
</tr>
<tr>
<td>zhen</td>
<td>String</td>
<td>否</td>
<td>是否真太阳时 例:1:考虑真太阳时 2:不考虑真太阳时 默认:2</td>
</tr>
<tr>
<td>province</td>
<td>String</td>
<td>否</td>
<td>省 例:北京市 非必传,但是如果考虑真太阳时,省和市都必传 详见<a href="<a href="https://www.showdoc.com.cn/jumdata/11558915168150800">真太阳时城市列表</a>">https://www.showdoc.com.cn/jumdata/11558915168150800">真太阳时城市列表</a></a>; </td>
</tr>
<tr>
<td>city</td>
<td>String</td>
<td>否</td>
<td>市 例:北京 非必传,但是如果考虑真太阳时,省和市都必传 详见<a href="<a href="https://www.showdoc.com.cn/jumdata/11558915168150800">真太阳时城市列表</a>">https://www.showdoc.com.cn/jumdata/11558915168150800">真太阳时城市列表</a></a>; </td>
</tr>
<tr>
<td>lang</td>
<td>String</td>
<td>否</td>
<td>语言:zh-cn 、en-us 、zh-tw 默认:zh-cn </td>
</tr>
<tr>
<td>factor</td>
<td>String</td>
<td>否</td>
<td>调整因子:例:0:不作调整 1:需要作调整 默认:0 </td>
</tr>
</tbody>
</table>
<h3>签名算法说明</h3>
<p><code>sign = sha256(appId + appSecret + timestamp)</code></p>
<p>用服务商分配的 appId、服务商分配的 appSecret,当前时间时间戳 timestamp,按上述顺序拼接成字符串,再进行 sha256 哈希得到。如下:</p>
<pre><code class="language-java">String appId = &quot;xyzxy2121zxyz&quot;;
String timestamp = &quot;1555378976238&quot;;
String appSecret = &quot;efcefcef1121cefcefc1212121&quot;;
String str = appId + appSecret + timestamp;
String sign = sha256(str);</code></pre>
<h3>成功返回样例</h3>
<pre><code class="language-json">{
&quot;code&quot;: 200,//返回码,详见返回码说明
&quot;msg&quot;: &quot;成功&quot;, //code对应的描述
&quot;taskNo&quot;: &quot;297667220221147391480569&quot;,//本次请求号
&quot;charge&quot;: true,//计费标志
&quot;data&quot;: {
&quot;detail_info&quot;: {
&quot;canggan&quot;: { //四柱藏干信息
&quot;month&quot;: [ //月柱藏干
&quot;己&quot;,
&quot;癸&quot;,
&quot;辛&quot;
],
&quot;hour&quot;: [ //时柱藏干
&quot;己&quot;,
&quot;丁&quot;,
&quot;乙&quot;
],
&quot;year&quot;: [ //年柱藏干
&quot;丙&quot;,
&quot;庚&quot;,
&quot;戊&quot;
],
&quot;day&quot;: [ //日柱藏干
&quot;戊&quot;,
&quot;乙&quot;,
&quot;癸&quot;
]
},
&quot;sizhu&quot;: { //四柱天干地支
&quot;month&quot;: {
&quot;tg&quot;: &quot;丁&quot;, //月柱天干
&quot;dz&quot;: &quot;丑&quot; //月柱地支
},
&quot;hour&quot;: {
&quot;tg&quot;: &quot;丁&quot;, //时柱天干
&quot;dz&quot;: &quot;未&quot; //时柱地支
},
&quot;year&quot;: {
&quot;tg&quot;: &quot;己&quot;, //年柱天干
&quot;dz&quot;: &quot;巳&quot; //年柱地支
},
&quot;day&quot;: {
&quot;tg&quot;: &quot;壬&quot;, //日柱天干
&quot;dz&quot;: &quot;辰&quot; //日柱地支
}
},
&quot;nayin&quot;: { //四柱纳音信息
&quot;month&quot;: &quot;涧下水&quot;, //年柱纳音
&quot;hour&quot;: &quot;天河水&quot;, //月柱纳音
&quot;year&quot;: &quot;大林木&quot;, //日柱纳音
&quot;day&quot;: &quot;长流水&quot; //时柱纳音
},
&quot;zhuxing&quot;: { //四柱主星
&quot;month&quot;: &quot;正财&quot;, //年柱主星
&quot;hour&quot;: &quot;正财&quot;, //月柱主星
&quot;year&quot;: &quot;正官&quot;, //日柱主星
&quot;day&quot;: &quot;日元&quot; //时柱主星
},
&quot;kongwang&quot;: { //四柱空亡信息
&quot;month&quot;: &quot;申酉&quot;, //年柱空亡
&quot;hour&quot;: &quot;寅卯&quot;, //月柱空亡
&quot;year&quot;: &quot;戌亥&quot;, //日柱空亡
&quot;day&quot;: &quot;午未&quot; //时柱空亡
},
&quot;shensha&quot;: { //四柱神煞信息
&quot;month&quot;: &quot;太极贵人 金舆 华盖&quot;, //年柱神煞
&quot;hour&quot;: &quot;空亡 太极贵人 国印贵人 童子&quot;, //月柱神煞
&quot;year&quot;: &quot;天乙贵人 太极贵人 劫煞&quot;, //日柱神煞
&quot;day&quot;: &quot;太极贵人 魁罡 福星贵人 寡宿 童子 天喜 福德 阴差阳错&quot;//时柱神煞
},
&quot;dayunshensha&quot;: [ //大运神煞
{
&quot;shensha&quot;: &quot;天医 羊刃 天厨贵人 红艳 将星 &quot;,//第1个大运神煞
&quot;tgdz&quot;: &quot;丙子&quot; //第1个大运天干地支
},
{
&quot;shensha&quot;: &quot;月德贵人 禄神 国印贵人 流霞 亡神 &quot;,//第2个大运神煞
&quot;tgdz&quot;: &quot;乙亥&quot; //第2个大运天干地支
},
{
&quot;shensha&quot;: &quot;国印贵人 &quot;,
&quot;tgdz&quot;: &quot;甲戌&quot;
},
{
&quot;shensha&quot;: &quot;天厨贵人 桃花 &quot;,
&quot;tgdz&quot;: &quot;癸酉&quot;
},
{
&quot;shensha&quot;: &quot;空亡&quot;,
&quot;tgdz&quot;: &quot;壬申&quot;
},
{
&quot;shensha&quot;: &quot;空亡 太极贵人 国印贵人 &quot;,
&quot;tgdz&quot;: &quot;辛未&quot;
},
{
&quot;shensha&quot;: &quot;空亡 天乙贵人 天德贵人 &quot;,
&quot;tgdz&quot;: &quot;庚午&quot;
},
{
&quot;shensha&quot;: &quot;天乙贵人 太极贵人 劫煞 &quot;,
&quot;tgdz&quot;: &quot;己巳&quot;
},
{
&quot;shensha&quot;: &quot;太极贵人 福星贵人 华盖 日德 &quot;,
&quot;tgdz&quot;: &quot;戊辰&quot;
},
{
&quot;shensha&quot;: &quot;天乙贵人 太极贵人 &quot;,
&quot;tgdz&quot;: &quot;丁卯&quot;
},
{
&quot;shensha&quot;: &quot;驿马 &quot;,
&quot;tgdz&quot;: &quot;丙寅&quot;
},
{
&quot;shensha&quot;: &quot;月德贵人 金舆 &quot;,//第12大运神煞
&quot;tgdz&quot;: &quot;乙丑&quot; //第12个大运天干地支
}
],
&quot;zizuo&quot;: { //四柱自坐信息
&quot;month&quot;: &quot;墓&quot;, //月柱自坐
&quot;hour&quot;: &quot;冠带&quot;, //时柱自坐
&quot;year&quot;: &quot;帝旺&quot;,//年柱自坐
&quot;day&quot;: &quot;墓&quot; //日柱自坐
},
&quot;fuxing&quot;: {//四柱副星信息
&quot;month&quot;: [ //月柱副星
&quot;正官&quot;,
&quot;劫财&quot;,
&quot;正印&quot;
],
&quot;hour&quot;: [ //时柱副星
&quot;正官&quot;,
&quot;正财&quot;,
&quot;伤官&quot;
],
&quot;year&quot;: [ //年柱副星
&quot;偏财&quot;,
&quot;偏印&quot;,
&quot;七杀&quot;
],
&quot;day&quot;: [ //日柱副星
&quot;七杀&quot;,
&quot;伤官&quot;,
&quot;劫财&quot;
]
},
&quot;xingyun&quot;: { //四柱星运信息
&quot;month&quot;: &quot;衰&quot;,//月柱星运
&quot;hour&quot;: &quot;养&quot;,//时柱星运
&quot;year&quot;: &quot;绝&quot;,//年柱星运
&quot;day&quot;: &quot;墓&quot;//日柱星运
}
},
&quot;base_info&quot;: { //基本信息
&quot;nongli&quot;: &quot;己巳年 一月 初一日 未时&quot;, //农历年
&quot;qiyun&quot;: &quot;7年2月14天起运&quot;, //起运
&quot;sex&quot;: &quot;乾造&quot;, //性别
&quot;name&quot;: &quot;张三&quot;, //求测者姓名
&quot;jiaoyun&quot;: &quot;1997年3月6日4时57分3秒&quot;,//交运
&quot;gongli&quot;: &quot;1990年1月27日13时29分&quot;,//公历年
&quot;zhengge&quot;: &quot;正官格&quot;//八字正格
},
&quot;bazi_info&quot;: {//八字信息
&quot;bazi&quot;: [ //八字四柱
&quot;戊辰&quot;, //八字四柱【年】
&quot;癸亥&quot;, //八字四柱【月】
&quot;丁卯&quot;, //八字四柱【日】
&quot;丙午&quot; //八字四柱【时】
],
&quot;day_cs&quot;: [//八字长生衰旺
&quot;衰&quot;, //八字长生衰旺【年】
&quot;胎&quot;, //八字长生衰旺【月】
&quot;病&quot;, //八字长生衰旺【日】
&quot;临官&quot; //八字长生衰旺【时】
],
&quot;dz_cg&quot;: [//地支藏干
&quot;戊|乙|癸&quot;, //地支藏干【年】
&quot;壬|甲&quot;, //地支藏干【月】
&quot;乙&quot;, //地支藏干【日】
&quot;丁|己&quot; //地支藏干【时】
],
&quot;dz_cg_god&quot;: [//地支藏干十神
&quot;伤官|偏印|七杀&quot;, //地支藏干十神【年】
&quot;正官|正印&quot;, //地支藏干十神【月】
&quot;偏印&quot;, //地支藏干十神【日】
&quot;比劫|食神&quot; //地支藏干十神【时】
],
&quot;na_yin&quot;: [ //五行纳音
&quot;大林木&quot;, //五行纳音【年】
&quot;大海水&quot;, //五行纳音【月】
&quot;炉中火&quot;, //五行纳音【日】
&quot;天河水&quot; //五行纳音【时】
],
&quot;kw&quot;: &quot;午未&quot;,//空亡
&quot;tg_cg_god&quot;: [//天干十神
&quot;正官&quot;,
&quot;正财&quot;,
&quot;日元&quot;,
&quot;正财&quot;
]
},
&quot;start_info&quot;: {
&quot;jishen&quot;: [ //吉神凶煞
&quot;太极&quot;, //吉神凶煞【年】
&quot;空亡 福星 学堂 亡神 元辰(大耗) 红鸾&quot;, //吉神凶煞【月】
&quot;太极 六厄&quot;, //吉神凶煞【日】
&quot;禄神 天厨 灾煞 干禄&quot; //吉神凶煞【时】
],
&quot;xz&quot;: &quot;水瓶座&quot;, //星座
&quot;sx&quot;: &quot;蛇&quot; //生肖
},
&quot;dayun_info&quot;: {//排大运信息
&quot;big&quot;: [ //大运神
&quot;丙子&quot;,
&quot;乙亥&quot;,
&quot;甲戌&quot;,
&quot;癸酉&quot;,
&quot;壬申&quot;,
&quot;辛未&quot;,
&quot;庚午&quot;,
&quot;己巳&quot;,
&quot;戊辰&quot;,
&quot;丁卯&quot;,
&quot;丙寅&quot;,
&quot;乙丑&quot;
],
&quot;big_start_year&quot;: [//大运始于年份
1997,
2007,
2017,
2027,
2037,
2047,
2057,
2067,
2077,
2087,
2097,
2107
],
&quot;xu_sui&quot;: [//大运神对应虚岁
8,
18,
28,
38,
48,
58,
68,
78,
88,
98,
108,
118
],
&quot;years_info9&quot;: [//从大运第10个始于年到大运第10个止于年里所有年柱
{
&quot;year_char&quot;: &quot;乙酉&quot;
},
{
&quot;year_char&quot;: &quot;乙未&quot;
},
{
&quot;year_char&quot;: &quot;乙巳&quot;
},
{
&quot;year_char&quot;: &quot;乙卯&quot;
},
{
&quot;year_char&quot;: &quot;乙丑&quot;
},
{
&quot;year_char&quot;: &quot;乙亥&quot;
},
{
&quot;year_char&quot;: &quot;乙酉&quot;
},
{
&quot;year_char&quot;: &quot;乙未&quot;
},
{
&quot;year_char&quot;: &quot;乙巳&quot;
},
{
&quot;year_char&quot;: &quot;乙卯&quot;
},
{
&quot;year_char&quot;: &quot;乙丑&quot;
},
{
&quot;year_char&quot;: &quot;乙亥&quot;
}
],
&quot;years_info7&quot;: [ //从大运第8个始于年到大运第8个止于年里所有年柱
{
&quot;year_char&quot;: &quot;癸未&quot;
},
{
&quot;year_char&quot;: &quot;癸巳&quot;
},
{
&quot;year_char&quot;: &quot;癸卯&quot;
},
{
&quot;year_char&quot;: &quot;癸丑&quot;
},
{
&quot;year_char&quot;: &quot;癸亥&quot;
},
{
&quot;year_char&quot;: &quot;癸酉&quot;
},
{
&quot;year_char&quot;: &quot;癸未&quot;
},
{
&quot;year_char&quot;: &quot;癸巳&quot;
},
{
&quot;year_char&quot;: &quot;癸卯&quot;
},
{
&quot;year_char&quot;: &quot;癸丑&quot;
},
{
&quot;year_char&quot;: &quot;癸亥&quot;
},
{
&quot;year_char&quot;: &quot;癸酉&quot;
}
],
&quot;years_info8&quot;: [ //从大运第9个始于年到大运第9个止于年里所有年柱
{
&quot;year_char&quot;: &quot;甲申&quot;
},
{
&quot;year_char&quot;: &quot;甲午&quot;
},
{
&quot;year_char&quot;: &quot;甲辰&quot;
},
{
&quot;year_char&quot;: &quot;甲寅&quot;
},
{
&quot;year_char&quot;: &quot;甲子&quot;
},
{
&quot;year_char&quot;: &quot;甲戌&quot;
},
{
&quot;year_char&quot;: &quot;甲申&quot;
},
{
&quot;year_char&quot;: &quot;甲午&quot;
},
{
&quot;year_char&quot;: &quot;甲辰&quot;
},
{
&quot;year_char&quot;: &quot;甲寅&quot;
},
{
&quot;year_char&quot;: &quot;甲子&quot;
},
{
&quot;year_char&quot;: &quot;甲戌&quot;
}
],
&quot;years_info1&quot;: [ //从大运第2个始于年到大运第2个止于年里所有年柱
{
&quot;year_char&quot;: &quot;丁丑&quot;
},
{
&quot;year_char&quot;: &quot;丁亥&quot;
},
{
&quot;year_char&quot;: &quot;丁酉&quot;
},
{
&quot;year_char&quot;: &quot;丁未&quot;
},
{
&quot;year_char&quot;: &quot;丁巳&quot;
},
{
&quot;year_char&quot;: &quot;丁卯&quot;
},
{
&quot;year_char&quot;: &quot;丁丑&quot;
},
{
&quot;year_char&quot;: &quot;丁亥&quot;
},
{
&quot;year_char&quot;: &quot;丁酉&quot;
},
{
&quot;year_char&quot;: &quot;丁未&quot;
},
{
&quot;year_char&quot;: &quot;丁巳&quot;
},
{
&quot;year_char&quot;: &quot;丁卯&quot;
}
],
&quot;years_info2&quot;: [ //从大运第3个始于年到大运第3个止于年里所有年柱
{
&quot;year_char&quot;: &quot;戊寅&quot;
},
{
&quot;year_char&quot;: &quot;戊子&quot;
},
{
&quot;year_char&quot;: &quot;戊戌&quot;
},
{
&quot;year_char&quot;: &quot;戊申&quot;
},
{
&quot;year_char&quot;: &quot;戊午&quot;
},
{
&quot;year_char&quot;: &quot;戊辰&quot;
},
{
&quot;year_char&quot;: &quot;戊寅&quot;
},
{
&quot;year_char&quot;: &quot;戊子&quot;
},
{
&quot;year_char&quot;: &quot;戊戌&quot;
},
{
&quot;year_char&quot;: &quot;戊申&quot;
},
{
&quot;year_char&quot;: &quot;戊午&quot;
},
{
&quot;year_char&quot;: &quot;戊辰&quot;
}
],
&quot;big_start_year_liu_nian&quot;: &quot;&quot;, //大运流年
&quot;years_info0&quot;: [//从大运第1个始于年到大运第1个止于年里所有年柱
{
&quot;year_char&quot;: &quot;丙子&quot;
},
{
&quot;year_char&quot;: &quot;丙戌&quot;
},
{
&quot;year_char&quot;: &quot;丙申&quot;
},
{
&quot;year_char&quot;: &quot;丙午&quot;
},
{
&quot;year_char&quot;: &quot;丙辰&quot;
},
{
&quot;year_char&quot;: &quot;丙寅&quot;
},
{
&quot;year_char&quot;: &quot;丙子&quot;
},
{
&quot;year_char&quot;: &quot;丙戌&quot;
},
{
&quot;year_char&quot;: &quot;丙申&quot;
},
{
&quot;year_char&quot;: &quot;丙午&quot;
},
{
&quot;year_char&quot;: &quot;丙辰&quot;
},
{
&quot;year_char&quot;: &quot;丙寅&quot;
}
],
&quot;years_info5&quot;: [ //从大运第6个始于年到大运第6个止于年里所有年柱
{
&quot;year_char&quot;: &quot;辛巳&quot;
},
{
&quot;year_char&quot;: &quot;辛卯&quot;
},
{
&quot;year_char&quot;: &quot;辛丑&quot;
},
{
&quot;year_char&quot;: &quot;辛亥&quot;
},
{
&quot;year_char&quot;: &quot;辛酉&quot;
},
{
&quot;year_char&quot;: &quot;辛未&quot;
},
{
&quot;year_char&quot;: &quot;辛巳&quot;
},
{
&quot;year_char&quot;: &quot;辛卯&quot;
},
{
&quot;year_char&quot;: &quot;辛丑&quot;
},
{
&quot;year_char&quot;: &quot;辛亥&quot;
},
{
&quot;year_char&quot;: &quot;辛酉&quot;
},
{
&quot;year_char&quot;: &quot;辛未&quot;
}
],
&quot;years_info6&quot;: [//从大运第7个始于年到大运第7个止于年里所有年柱
{
&quot;year_char&quot;: &quot;壬午&quot;
},
{
&quot;year_char&quot;: &quot;壬辰&quot;
},
{
&quot;year_char&quot;: &quot;壬寅&quot;
},
{
&quot;year_char&quot;: &quot;壬子&quot;
},
{
&quot;year_char&quot;: &quot;壬戌&quot;
},
{
&quot;year_char&quot;: &quot;壬申&quot;
},
{
&quot;year_char&quot;: &quot;壬午&quot;
},
{
&quot;year_char&quot;: &quot;壬辰&quot;
},
{
&quot;year_char&quot;: &quot;壬寅&quot;
},
{
&quot;year_char&quot;: &quot;壬子&quot;
},
{
&quot;year_char&quot;: &quot;壬戌&quot;
},
{
&quot;year_char&quot;: &quot;壬申&quot;
}
],
&quot;years_info3&quot;: [//从大运第4个始于年到大运第4个止于年里所有年柱
{
&quot;year_char&quot;: &quot;己卯&quot;
},
{
&quot;year_char&quot;: &quot;己丑&quot;
},
{
&quot;year_char&quot;: &quot;己亥&quot;
},
{
&quot;year_char&quot;: &quot;己酉&quot;
},
{
&quot;year_char&quot;: &quot;己未&quot;
},
{
&quot;year_char&quot;: &quot;己巳&quot;
},
{
&quot;year_char&quot;: &quot;己卯&quot;
},
{
&quot;year_char&quot;: &quot;己丑&quot;
},
{
&quot;year_char&quot;: &quot;己亥&quot;
},
{
&quot;year_char&quot;: &quot;己酉&quot;
},
{
&quot;year_char&quot;: &quot;己未&quot;
},
{
&quot;year_char&quot;: &quot;己巳&quot;
}
],
&quot;years_info4&quot;: [ //从大运第5个始于年到大运第5个止于年里所有年柱
{
&quot;year_char&quot;: &quot;庚辰&quot;
},
{
&quot;year_char&quot;: &quot;庚寅&quot;
},
{
&quot;year_char&quot;: &quot;庚子&quot;
},
{
&quot;year_char&quot;: &quot;庚戌&quot;
},
{
&quot;year_char&quot;: &quot;庚申&quot;
},
{
&quot;year_char&quot;: &quot;庚午&quot;
},
{
&quot;year_char&quot;: &quot;庚辰&quot;
},
{
&quot;year_char&quot;: &quot;庚寅&quot;
},
{
&quot;year_char&quot;: &quot;庚子&quot;
},
{
&quot;year_char&quot;: &quot;庚戌&quot;
},
{
&quot;year_char&quot;: &quot;庚申&quot;
},
{
&quot;year_char&quot;: &quot;庚午&quot;
}
],
&quot;big_god&quot;: [ //大运神
&quot;偏财&quot;,
&quot;伤官&quot;,
&quot;食神&quot;,
&quot;劫财&quot;,
&quot;比肩&quot;,
&quot;正印&quot;,
&quot;偏印&quot;,
&quot;正官&quot;,
&quot;七杀&quot;,
&quot;正财&quot;,
&quot;偏财&quot;,
&quot;伤官&quot;
],
&quot;big_end_year&quot;: [//大运止于年份
2006,
2016,
2026,
2036,
2046,
2056,
2066,
2076,
2086,
2096,
2106,
2116
],
&quot;big_cs&quot;: [//大运神对应长生衰旺
&quot;帝旺&quot;,
&quot;临官&quot;,
&quot;冠带&quot;,
&quot;沐浴&quot;,
&quot;长生&quot;,
&quot;养&quot;,
&quot;胎&quot;,
&quot;绝&quot;,
&quot;墓&quot;,
&quot;死&quot;,
&quot;病&quot;,
&quot;衰&quot;
]
}
}
}</code></pre>
<h3>失败返回样例</h3>
<pre><code class="language-json">{
&quot;msg&quot;: &quot;姓名不能为空&quot;,
&quot;code&quot;: 400
}</code></pre>
<h3>返回字段说明</h3>
<table>
<thead>
<tr>
<th>字段名</th>
<th><div style="width:400px">说明</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>返回码,详见返回码说明</td>
</tr>
<tr>
<td>msg</td>
<td>code对应的描述</td>
</tr>
<tr>
<td>charge</td>
<td>计费标志</td>
</tr>
<tr>
<td>taskNo</td>
<td>本次请求号</td>
</tr>
<tr>
<td>data</td>
<td>返回具体结果,详见成功返回样例</td>
</tr>
</tbody>
</table>
<h3>code返回码说明</h3>
<table>
<thead>
<tr>
<th>code</th>
<th><div style="width:400px">说明</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>200</td>
<td>成功(计费)</td>
</tr>
<tr>
<td>400</td>
<td>参数错误</td>
</tr>
<tr>
<td>404</td>
<td>请求地址不正确</td>
</tr>
<tr>
<td>500</td>
<td>服务商维护,请稍候再试</td>
</tr>
<tr>
<td>601</td>
<td>接口未开通</td>
</tr>
<tr>
<td>602</td>
<td>账号停用</td>
</tr>
<tr>
<td>603</td>
<td>余额不足请充值</td>
</tr>
<tr>
<td>604</td>
<td>接口停用</td>
</tr>
<tr>
<td>606</td>
<td>调用超限,请稍候再试</td>
</tr>
<tr>
<td>607</td>
<td>ip不在白名单</td>
</tr>
<tr>
<td>609</td>
<td>请求过于频繁,请稍候再试</td>
</tr>
<tr>
<td>610</td>
<td>请求超时</td>
</tr>
<tr>
<td>999</td>
<td>其他,以实际返回为准</td>
</tr>
</tbody>
</table>