六道轮回
<p>[TOC]</p>
<h3>接口描述</h3>
<ul>
<li> 六道轮回知晓前世今生,破解轮回奥秘,通过《子平八字》结合《过去现在因果经》卷二,推测出测算者的轮回信息,测算结果仅供参考。</li>
</ul>
<h3>请求地址</h3>
<p><code>https://api.jumdata.com/prognosticate/cycle</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>bornDateTime</td>
<td>String</td>
<td>是</td>
<td>出生年月日时 格式:yyyyMMddHHmm</td>
</tr>
<tr>
<td>sect</td>
<td>String</td>
<td>否</td>
<td>流派 1:晚子时日柱算明天 2:晚子时日柱算当天 默认:2</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-cn </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;,
&quot;taskNo&quot;: &quot;183257012232596491134327&quot;,
&quot;charge&quot;: true,
&quot;data&quot;: {
&quot;base_info&quot;: { //基本信息
&quot;zhen&quot;:
{ //考虑真太阳时才会有此字段,不考虑真太阳时就没有这个字段
&quot;province&quot;: &quot;北京市&quot;, //真太阳时省市
&quot;city&quot;: &quot;北京&quot;, //真太阳时省市
&quot;jingdu&quot;: &quot;116.46&quot;, //真太阳经度
&quot;weidu&quot;: &quot;39.92&quot;, //真太阳纬度
&quot;shicha&quot;: &quot;晚0小时14分10秒&quot; //考虑真太阳的时差
},
&quot;sex&quot;: &quot;乾造&quot;,
&quot;name&quot;: &quot;张三&quot;,
&quot;gongli&quot;: &quot;1994-12-03 18:55:00&quot;, //公历
&quot;nongli&quot;: &quot;一九九四年冬月初一日 酉时&quot;, //农历
&quot;qiyun&quot;: &quot;1年3个月20天后起运&quot;, //起运
&quot;jiaoyun&quot;: &quot;1996-03-23后交运&quot;, //交运
&quot;taiyuan&quot;: &quot;丙寅&quot;, //胎元
&quot;taiyuan_nayin&quot;: &quot;炉中火&quot;, //胎元纳音
&quot;taixi&quot;: &quot;戊寅&quot;, //胎息
&quot;taixi_nayin&quot;: &quot;城头土&quot;, //胎息纳音
&quot;minggong&quot;: &quot;癸酉&quot;, //命宫
&quot;minggong_nayin&quot;: &quot;剑锋金&quot;, //命宫纳音
&quot;shengong&quot;: &quot;癸酉&quot;, //身宫
&quot;shengong_nayin&quot;: &quot;剑锋金&quot;, //身宫纳音
&quot;shengxiao&quot;: &quot;狗&quot;, //生肖
&quot;xingzuo&quot;: &quot;射手&quot;, //星座
&quot;siling&quot;: &quot;壬&quot;, //司令
&quot;jiaoyun_mang&quot;: &quot;逢丙、庚年 清明前3天的午时 交大运&quot;,//交运 (盲派断法)
&quot;xingxiu&quot;: &quot;女宿北方玄武&quot;, //星宿
&quot;minggua&quot;: { //命卦信息
&quot;minggua_name&quot;: &quot;乾&quot;, //命卦名
&quot;minggua_fangwei&quot;: &quot;西四命&quot; //命卦方位
},
&quot;wuxing_wangdu&quot;: &quot;水旺 木相 金休 土囚 火死&quot;, //五行旺度
&quot;tiangan_liuyi&quot;: &quot;癸甲相生 乙辛相冲&quot;, //天干留意
&quot;dizhi_liuyi&quot;: &quot;酉戌相害 亥亥自刑&quot;, //地支留意
&quot;xiyongshen&quot;: { //喜用神 无敌律数八字五行量化法
&quot;qiangruo&quot;: &quot;八字偏弱&quot;, //八字强弱
&quot;xiyongshen&quot;: &quot;金,水&quot;, //以金,水为喜用神
&quot;jishen&quot;: &quot;水&quot;, //以水为忌神
&quot;xiyongshen_desc&quot;: &quot;身弱,需补助,避免克泄耗,喜用金补水,避木忌土火。&quot;, //喜用神说明
&quot;wuxingxiji&quot;: &quot;喜水 用金 闲木 仇火 忌土&quot;, //五行喜忌
&quot;jin_number&quot;: 0, //五行统计 金有0个
&quot;mu_number&quot;: 1, //五行统计 木有1个
&quot;shui_number&quot;: 2, //五行统计 水有2个
&quot;huo_number&quot;: 3, //五行统计 火有3个
&quot;tu_number&quot;: 2, //五行统计 土有2个
&quot;tonglei&quot;: &quot;金水&quot;, //同类为金水
&quot;yilei&quot;: &quot;木火土&quot;, //异类为木火土
&quot;rizhu_tiangan&quot;: &quot;水&quot; //命主五行属水
&quot;zidang&quot;: 0, //自党分
&quot;yidang&quot;: 9, //异党分
&quot;zidang_percent&quot;: &quot;0%&quot;, //自党占百分比
&quot;yidang_percent&quot;: &quot;100%&quot;,//异党占百分比
&quot;jin_score&quot;: 75, //五行金能量分数
&quot;mu_score&quot;: 16, //五行木能量分数
&quot;shui_score&quot;: 118,//五行水能量分数
&quot;huo_score&quot;: 36,//五行火能量分数
&quot;tu_score&quot;: 139,//五行土能量分数
&quot;jin_score_percent&quot;: &quot;19.53%&quot;, //五行金能量占比
&quot;mu_score_percent&quot;: &quot;4.17%&quot;, //五行木能量占比
&quot;shui_score_percent&quot;: &quot;30.73%&quot;, //五行水能量占比
&quot;huo_score_percent&quot;: &quot;9.38%&quot;, //五行火能量占比
&quot;tu_score_percent&quot;: &quot;36.2%&quot;, //五行土能量占比
&quot;yinyang&quot;: &quot;阴阳平衡&quot; //五行阴阳参考
},
&quot;liudao_info&quot;: { //六道解析
&quot;past_info&quot;: { //前世信息
&quot;liudao_name&quot;: &quot;阿修罗道&quot;, //前世来自哪一道
&quot;liudao_simple_desc&quot;: &quot;你前世来自六道中的阿修罗道...&quot;, //简析
&quot;liudao_detail_desc&quot;: &quot;六道轮回中的六道分别为天道...&quot; //详析
},
&quot;now_info&quot;: { //今生信息
&quot;liudao_name&quot;: &quot;人道&quot;, //今生在哪一道
&quot;liudao_simple_desc&quot;: &quot;你今生投入人道,家世显赫,...&quot;,
&quot;liudao_detail_desc&quot;: &quot;六道轮回中的六道分...&quot;
},
&quot;future_info&quot;: { //来生信息
&quot;liudao_name&quot;: &quot;地狱道&quot;, //来生将去往哪一道
&quot;liudao_simple_desc&quot;: &quot;你来生可能去往六道中的地狱道......&quot;,
&quot;liudao_detail_desc&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>