紫微流盘
<p>[TOC]</p>
<h3>接口描述</h3>
<ul>
<li> 紫微流盘是以人出生的年、月、日、时确定十二宫的位置,构成紫微先天盘,大限盘,流年盘,流月盘,流日盘,流时盘结合各宫的星群组合,是一种古老而神秘的命理工具,被广泛应用于命运预测和个人发展的指导。 它通过对个人出生时间、地点等信息进行计算,得出一张详细的星盘图,从而揭示了一个人一生中的命运轨迹。</li>
<li>注意:关于三方四正,在紫微斗数中,当我们使用排盘后,会看到盘上有一个由虚线连起来的三角形,以及一条连接到对宫的虚线,这就是三方四正。这是一个固定的表,如下展示:</li>
</ul>
<table>
<thead>
<tr>
<th>宫位</th>
<th>三方</th>
<th>四正</th>
</tr>
</thead>
<tbody>
<tr>
<td>命宫</td>
<td>命宫、财帛宫、事业宫</td>
<td>迁移宫</td>
</tr>
<tr>
<td>兄弟宫</td>
<td>兄弟宫、疾厄宫、田宅宫</td>
<td>奴仆宫</td>
</tr>
<tr>
<td>夫妻宫</td>
<td>夫妻宫、迁移宫、福德宫</td>
<td>事业宫</td>
</tr>
<tr>
<td>子女宫</td>
<td>子女宫、奴仆宫、父母宫</td>
<td>田宅宫</td>
</tr>
<tr>
<td>财帛宫</td>
<td>财帛宫、命宫、事业宫</td>
<td>福德宫</td>
</tr>
<tr>
<td>疾厄宫</td>
<td>疾厄宫、兄弟宫、田宅宫</td>
<td>父母宫</td>
</tr>
<tr>
<td>迁移宫</td>
<td>迁移宫、夫妻宫、福德宫</td>
<td>命宫</td>
</tr>
<tr>
<td>奴仆宫</td>
<td>奴仆宫、子女宫、父母宫</td>
<td>兄弟宫</td>
</tr>
<tr>
<td>事业宫</td>
<td>事业宫、财帛宫、命宫</td>
<td>夫妻宫</td>
</tr>
<tr>
<td>田宅宫</td>
<td>田宅宫、疾厄宫、兄弟宫</td>
<td>子女宫</td>
</tr>
<tr>
<td>福德宫</td>
<td>福德宫、迁移宫、夫妻宫</td>
<td>财帛宫</td>
</tr>
<tr>
<td>父母宫</td>
<td>父母宫、奴仆宫、子女宫</td>
<td>疾厄宫</td>
</tr>
</tbody>
</table>
<h3>请求地址</h3>
<p><code>https://api.jumdata.com/fortune/purple</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>Integer</td>
<td>是</td>
<td>性别 0:男 1:女</td>
</tr>
<tr>
<td>type</td>
<td>Integer</td>
<td>是</td>
<td>历类型 0:农历 1:公历</td>
</tr>
<tr>
<td>year</td>
<td>Integer</td>
<td>是</td>
<td>出生年 例: 1988</td>
</tr>
<tr>
<td>month</td>
<td>Integer</td>
<td>是</td>
<td>出生月 例: 8</td>
</tr>
<tr>
<td>day</td>
<td>Integer</td>
<td>是</td>
<td>出生日 例: 7</td>
</tr>
<tr>
<td>hours</td>
<td>Integer</td>
<td>是</td>
<td>出生时 例: 12</td>
</tr>
<tr>
<td>minute</td>
<td>Integer</td>
<td>是</td>
<td>出生分 例: 30 如果不知道具体分,可以传数字 0</td>
</tr>
<tr>
<td>leapBound</td>
<td>Integer</td>
<td>否</td>
<td>闰月分界 0:月中分界 1:做下月 默认:0</td>
</tr>
<tr>
<td>prosCons</td>
<td>Integer</td>
<td>否</td>
<td>长生顺逆 1:全部顺排 2:按年干阴阳 3:按照男女 默认:2</td>
</tr>
<tr>
<td>panModel</td>
<td>Integer</td>
<td>否</td>
<td>盘类型 0:先天本命盘+大限盘 1:流年盘 2:流月盘 3:流日盘 4:流时盘 默认:0</td>
</tr>
<tr>
<td>dxModel</td>
<td>Integer</td>
<td>否</td>
<td>大限顺逆 1:阳男阴女顺,阳女阴男逆 2:男顺女逆 默认:1</td>
</tr>
<tr>
<td>liuTime</td>
<td>Integer</td>
<td>否</td>
<td>流年、月、日时的时间戳 例: 1698805691 当panModel为1、2、3、4时此参数必传</td>
</tr>
<tr>
<td>sect</td>
<td>Integer</td>
<td>否</td>
<td>流派 1:晚子时日柱算明天 2:晚子时日柱算当天 默认:2</td>
</tr>
<tr>
<td>zhen</td>
<td>Integer</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 、zh-tw 默认: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;,//code对应的描述
&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;2023年10月28日10时49分&quot;, //公历
&quot;nongli&quot;: &quot;2023年九月十四巳时&quot;, //农历
&quot;qiyun&quot;: &quot;6年6个月0天后起运&quot;, //起运
&quot;jiaoyun&quot;: &quot;2030-04-28后交运&quot;, //交运
&quot;yinyang&quot;: &quot;偏阴&quot;, //五行阴阳参考
&quot;age&quot;: 1, //年龄
&quot;mingsihua&quot;: &quot;阴贪巨破&quot;, //命四化:阴贪巨破
&quot;minggong&quot;: &quot;巳&quot;, //命宫:巳
&quot;shengong&quot;: &quot;卯&quot;, //身宫:卯
&quot;zidou&quot;: &quot;酉&quot;, //子斗:酉
&quot;liudou&quot;: &quot;寅&quot;, //流斗:寅
&quot;mingju&quot;: &quot;土五局&quot;, //天盘局:土五局
&quot;mingzhu&quot;: &quot;武曲&quot;, //命主:廉贞
&quot;shenzhu&quot;: &quot;天同&quot;, //身主:天同
&quot;yeargz&quot;: &quot;癸卯&quot;, //年干支:癸卯
&quot;monthgz&quot;: &quot;壬戌&quot;, //月干支:癸亥
&quot;daygz&quot;: &quot;己未&quot;, //日干支:己未
&quot;hourgz&quot;: &quot;己巳&quot;, //时干支:己巳
&quot;yearnayin&quot;: &quot;金薄金&quot;, //年纳音:金薄金
&quot;monthnayin&quot;: &quot;大海水&quot;, //月纳音:大海水
&quot;daynayin&quot;: &quot;天上火&quot;, //日纳音:天上火
&quot;hournayin&quot;: &quot;大林木&quot; //时纳音:大林木
&quot;gendertype&quot;: &quot;阴男&quot;, //紫微性别阴阳
},
&quot;detail_info&quot;: {
//注意:只有pan_model为0时才有先天盘 xiantian_info 数据
&quot;xiantian_info&quot;: { //先天盘数据
&quot;gong_pan&quot;: [{ //先天盘的12宫盘数据
//第1宫,先天亥宫信息
&quot;minggong&quot;: &quot;迁移宫&quot;, //命宫:迁移宫
&quot;yinshou&quot;: &quot;癸亥&quot;, //寅首:癸亥
&quot;jiangxing&quot;: &quot;指背&quot;, //将星:指背
&quot;changsheng&quot;: &quot;绝&quot;, //长生:绝
&quot;daxian&quot;: &quot;65-74&quot;, //大限:65-74
&quot;xiaoxian&quot;: &quot;白虎&quot;, //小限:白虎
&quot;boshi&quot;: &quot;力士&quot;, //博士星:力士
&quot;ziweixing&quot;: &quot;武曲&quot;, //紫微星:武曲
&quot;ziweixing_xingyao&quot;: &quot;平&quot;, //紫微星星耀:平
&quot;ziweixing_xiantian_sihua&quot;: &quot;&quot;, //先天盘紫微星四化:无
&quot;ziweixing_sihua&quot;: &quot;&quot;, //紫微星四化:无
&quot;tianfuxing&quot;: &quot;破军&quot;, //天府星:破军
&quot;tianfuxing_xingyao&quot;: &quot;陷&quot;, //天府星星耀:陷
&quot;tianfuxing_xiantian_sihua&quot;: &quot;禄&quot;,//先天盘天府星四化:禄
&quot;tianfuxing_sihua&quot;: &quot;&quot;, //天府星四化:无
&quot;monthxing&quot;: &quot;&quot;, //月星:无
&quot;monthxing_xingyao&quot;: &quot;&quot;, //月星星耀:无
&quot;monthxing_xiantian_sihua&quot;: &quot;&quot;, //先天盘月星四化:无
&quot;monthxing_sihua&quot;: &quot;&quot;, //月星四化:无
&quot;hourxing&quot;: &quot;台辅&quot;, //时星:台辅
&quot;hourxing_xingyao&quot;: &quot;&quot;, //时星星耀:无
&quot;hourxing_xiantian_sihua&quot;: &quot;&quot;, //先天盘时星四化:无
&quot;hourxing_sihua&quot;: &quot;&quot;, //时星四化:无
&quot;yearganxing&quot;: &quot;陀罗&quot;, //年干星:陀罗
&quot;yearganxing_xingyao&quot;: &quot;陷&quot;, //年干星星耀:陷
&quot;yearganxing_xiantian_sihua&quot;: &quot;&quot;,//先天盘年干星四化:无
&quot;yearganxing_sihua&quot;: &quot;&quot;, //年干星四化:无
&quot;yearzhixing&quot;: &quot;&quot;, //年支星:无
&quot;yearzhixing_xingyao&quot;: &quot;&quot;, //年支星星耀:无
&quot;yearzhixing_xiantian_sihua&quot;: &quot;&quot;, //先天盘年支星四化:无
&quot;yearzhixing_sihua&quot;: &quot;&quot;, //年支星四化:无
&quot;qitaxing&quot;: &quot;&quot;, //其他星:无
&quot;qitaxing_xingyao&quot;: &quot;&quot;, //其他星星耀:无
&quot;qitaxing_xiantian_sihua&quot;: &quot;&quot;, //先天盘其他星四化:无
&quot;qitaxing_sihua&quot;: &quot;&quot; //其他星四化:无
&quot;liunian_age_str&quot;: &quot;1,13,25,37,49&quot; //流年年龄
&quot;xiaoxian_age_str&quot;: &quot;1,13,25,37,49&quot; //小限年龄
}, {
//第2宫,先天子宫信息
&quot;minggong&quot;: &quot;疾厄宫&quot;,
&quot;yinshou&quot;: &quot;甲子&quot;,
......
&quot;qitaxing_sihua&quot;: &quot;&quot;
&quot;liunian_age_str&quot;: &quot;&quot;
&quot;liunian_age_str&quot;: &quot;&quot;
}, {
//第3宫,先天丑宫信息
&quot;minggong&quot;: &quot;财帛宫&quot;,
&quot;yinshou&quot;: &quot;乙丑&quot;,
......
&quot;qitaxing_sihua&quot;: &quot;&quot;
&quot;liunian_age_str&quot;: &quot;&quot;
&quot;liunian_age_str&quot;: &quot;&quot;
}, {
//第4宫,先天寅宫信息
&quot;minggong&quot;: &quot;子女宫&quot;,
&quot;yinshou&quot;: &quot;甲寅&quot;,
......
&quot;qitaxing_sihua&quot;: &quot;&quot;
&quot;liunian_age_str&quot;: &quot;&quot;
&quot;liunian_age_str&quot;: &quot;&quot;
}, {
//第5宫,先天卯宫信息
&quot;minggong&quot;: &quot;身夫妻宫&quot;,
&quot;yinshou&quot;: &quot;乙卯&quot;,
......
&quot;qitaxing_sihua&quot;: &quot;&quot;
&quot;liunian_age_str&quot;: &quot;&quot;
&quot;liunian_age_str&quot;: &quot;&quot;
},
//第6宫,先天辰宫信息
{.....},
//第7宫,先天巳宫信息
{.....},
//第8宫,先天午宫信息
{.....},
//第9宫,先天未宫信息
{.....},
//第10宫,先天申宫信息
{.....},
//第11宫,先天酉宫信息
{.....},
//第12宫,先天戌宫信息
{.....},
//出生年到第一个大限年的所有童限流年列表,此列表的时间戳可以作为流年的liu_time参数传递
&quot;liunian_list&quot;: [{
&quot;liu_year&quot;: 2023, //童限流年
&quot;liu_sui&quot;: 1, //童限年龄
&quot;liu_year_timestamp&quot;: 1698422400 //童限流年时间戳,此时间戳可以作为【流年盘,即pan_model为1】的liu_time参数传递
}, {
&quot;liu_year&quot;: 2024, //童限流年
&quot;liu_sui&quot;: 2,
&quot;liu_year_timestamp&quot;: 1730044800
}, {
&quot;liu_year&quot;: 2025, //童限流年
&quot;liu_sui&quot;: 3,
&quot;liu_year_timestamp&quot;: 1761580800
}, {
&quot;liu_year&quot;: 2026, //童限流年
&quot;liu_sui&quot;: 4,
&quot;liu_year_timestamp&quot;: 1793116800
}]
},
//注意:只有pan_model为0时才有大限盘 daxian_info 数据
&quot;daxian_info&quot;: [//大限盘数据
//第一轮大限数据
{
&quot;daxian_instructions&quot;: &quot;第1轮大限&quot;, //大限轮描述
&quot;daxian_frame_desc&quot;: &quot;丁巳限&quot;,
&quot;daxian_frame_number&quot;: &quot;5-14&quot;, //大限时间范围 所对应的年龄范围
&quot;gong_pan&quot;: [{ //第1轮大限的12宫信息
//第1轮大限的,第1宫信息
&quot;daxian_desc&quot;: &quot;大限迁移宫&quot;,
&quot;xiaoxian_desc&quot;: &quot;小限夫妻宫&quot;,
&quot;minggong&quot;: &quot;迁移宫&quot;,
&quot;yinshou&quot;: &quot;癸亥&quot;,
&quot;jiangxing&quot;: &quot;指背&quot;,
&quot;changsheng&quot;: &quot;绝&quot;,
&quot;daxian&quot;: &quot;65-74&quot;,
&quot;xiaoxian&quot;: &quot;白虎&quot;,
&quot;boshi&quot;: &quot;力士&quot;,
&quot;ziweixing&quot;: &quot;武曲&quot;,
&quot;ziweixing_xingyao&quot;: &quot;平&quot;,
&quot;ziweixing_daxian_sihua&quot;: &quot;&quot;, //大限盘紫微星四化:无
&quot;ziweixing_xiantian_sihua&quot;: &quot;&quot;, //先天盘紫微星四化:无
&quot;tianfuxing&quot;: &quot;破军&quot;,
&quot;tianfuxing_xingyao&quot;: &quot;陷&quot;,
&quot;tianfuxing_daxian_sihua&quot;: &quot;&quot;,
&quot;tianfuxing_xiantian_sihua&quot;: &quot;禄&quot;,
&quot;monthxing&quot;: &quot;&quot;,
&quot;monthxing_xingyao&quot;: &quot;&quot;,
&quot;monthxing_daxian_sihua&quot;: &quot;&quot;,
&quot;monthxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;hourxing&quot;: &quot;台辅&quot;,
&quot;hourxing_xingyao&quot;: &quot;&quot;,
&quot;hourxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;hourxing_daxian_sihua&quot;: &quot;&quot;,
&quot;yearganxing&quot;: &quot;陀罗&quot;,
&quot;yearganxing_xingyao&quot;: &quot;陷&quot;,
&quot;yearganxing_daxian_sihua&quot;: &quot;&quot;,
&quot;yearganxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;yearzhixing&quot;: &quot;&quot;,
&quot;yearzhixing_xingyao&quot;: &quot;&quot;,
&quot;yearzhixing_daxian_sihua&quot;: &quot;&quot;,
&quot;yearzhixing_xiantian_sihua&quot;: &quot;&quot;,
&quot;qitaxing&quot;: &quot;&quot;,
&quot;qitaxing_xingyao&quot;: &quot;&quot;,
&quot;qitaxing_daxian_sihua&quot;: &quot;&quot;
&quot;qitaxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;liunian_age_str&quot;: &quot;1,13,25,37,49&quot;,
&quot;xiaoxian_age_str&quot;: &quot;1,13,25,37,49&quot;,
},
//第1轮大限的,第2宫信息
{......},
//第1轮大限的,第3宫信息
{......},
......
//第1轮大限的,第12宫信息
{......}],
//第1轮大限年从开始到结束每一年的流年信息(大限年每轮10个流年)
&quot;liunian_list&quot;: [
//第1轮大限第1个流年
{
&quot;liu_year&quot;: 2027,
&quot;liu_sui&quot;: 5, //第1轮大限第1个流年所对应的年龄
&quot;liu_year_timestamp&quot;: 1824652800 //第1轮大限第1个流年的时间戳,此时间戳可以作为【流年盘,即pan_model为1】的liu_time参数传递
},
// 第1轮大限第2个流年
{......},
// 第1轮大限第3个流年
{......},
.......
// 第1轮大限第10个流年
{......},
]
},
//第二轮大限数据
{
&quot;daxian_instructions&quot;: &quot;第2轮大限&quot;,
&quot;daxian_frame_desc&quot;: &quot;丙辰限&quot;,
&quot;daxian_frame_number&quot;: &quot;15-24&quot;,
&quot;gong_pan&quot;: [{....}],
//第2轮大限年从开始到结束每一年的流年信息(大限年每轮10个流年)
&quot;liunian_list&quot;: [
{
&quot;liu_year&quot;: 2037,
&quot;liu_sui&quot;: 15, //第2轮大限第1个流年所对应的年龄
&quot;liu_year_timestamp&quot;: 2140272000
},
// 第2轮大限第2个流年
{......},
// 第2轮大限第3个流年
{......},
.......
// 第2轮大限第10个流年
{......},
]
},
//第三轮大限数据
{
&quot;daxian_instructions&quot;: &quot;第3轮大限&quot;,
......
},
......
//第十二轮大限数据
{
&quot;daxian_instructions&quot;: &quot;第12轮大限&quot;,
......
},
//注意:只有pan_model为1,且传递了liu_time参数,才有流年盘 liunian_info 数据
&quot;liunian_info&quot;: { //流年数据
&quot;gan_zhi&quot;: &quot;丁未&quot;, //流年干支
&quot;gong_pan&quot;: [ //流年12宫信息
//该流年下的,第1宫信息
{
&quot;xiaoxian_desc&quot;: &quot;小限迁移宫&quot;,
&quot;liunian_desc&quot;: &quot;年奴仆宫&quot;,
&quot;minggong&quot;: &quot;迁移宫&quot;,
&quot;yinshou&quot;: &quot;癸亥&quot;,
&quot;jiangxing&quot;: &quot;指背&quot;,
&quot;changsheng&quot;: &quot;绝&quot;,
&quot;daxian&quot;: &quot;65-74&quot;,
&quot;xiaoxian&quot;: &quot;白虎&quot;,
&quot;boshi&quot;: &quot;力士&quot;,
&quot;ziweixing&quot;: &quot;武曲&quot;,
&quot;ziweixing_xingyao&quot;: &quot;平&quot;,
&quot;ziweixing_liunian_sihua&quot;: &quot;&quot;, //流年四化
&quot;ziweixing_xiantian_sihua&quot;: &quot;&quot;, //先天四化
&quot;tianfuxing&quot;: &quot;破军&quot;,
&quot;tianfuxing_xingyao&quot;: &quot;陷&quot;,
&quot;tianfuxing_liunian_sihua&quot;: &quot;禄&quot;,
&quot;tianfuxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;monthxing&quot;: &quot;&quot;,
&quot;monthxing_xingyao&quot;: &quot;&quot;,
&quot;monthxing_liunian_sihua&quot;: &quot;&quot;,
&quot;monthxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;hourxing&quot;: &quot;台辅&quot;,
&quot;hourxing_xingyao&quot;: &quot;&quot;,
&quot;hourxing_liunian_sihua&quot;: &quot;&quot;,
&quot;hourxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;yearganxing&quot;: &quot;陀罗&quot;,
&quot;yearganxing_xingyao&quot;: &quot;陷&quot;,
&quot;yearganxing_liunian_sihua&quot;: &quot;&quot;,
&quot;yearganxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;yearzhixing&quot;: &quot;&quot;,
&quot;yearzhixing_xingyao&quot;: &quot;&quot;,
&quot;yearzhixing_liunian_sihua&quot;: &quot;&quot;,
&quot;yearzhixing_xiantian_sihua&quot;: &quot;&quot;,
&quot;qitaxing&quot;: &quot;&quot;,
&quot;qitaxing_xingyao&quot;: &quot;&quot;,
&quot;qitaxing_liunian_sihua&quot;: &quot;&quot;
&quot;qitaxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;liunian_age_str&quot;: &quot;1,13,25,37,49&quot;,
&quot;xiaoxian_age_str&quot;: &quot;1,13,25,37,49&quot;,
&quot;ziweixing_xiaoxian_sihua&quot;: &quot;&quot;, //小限紫微星四化
&quot;tianfuxing_xiaoxian_sihua&quot;: &quot;禄&quot;, //小限天府星四化
&quot;monthxing_xiaoxian_sihua&quot;: &quot;&quot;,
&quot;hourxing_xiaoxian_sihua&quot;: &quot;&quot;,
&quot;yearganxing_xiaoxian_sihua&quot;: &quot;&quot;,
&quot;yearzhixing_xiaoxian_sihua&quot;: &quot;&quot;,
&quot;qitaxing_xiaoxian_sihua&quot;: &quot;&quot;
},
//该流年下的,第2宫信息
{......},
//该流年下的,第3宫信息
{......},
......
//该流年下的,第12宫信息
{......}],
],
//该流年下,每个月的流月信息
&quot;liuyue_list&quot;: [{
&quot;liu_month&quot;: &quot;正月&quot;,
&quot;liu_month_timestamp&quot;: 1798732800 //该指定流年下,对应的第1个流月时间戳,此时间戳可以作为【流月盘,即pan_model为2】的liu_time参数传递
}, {
&quot;liu_month&quot;: &quot;二月&quot;,
&quot;liu_month_timestamp&quot;: 1801411200
}, {
&quot;liu_month&quot;: &quot;三月&quot;,
&quot;liu_month_timestamp&quot;: 1803830400
}, {
&quot;liu_month&quot;: &quot;四月&quot;,
&quot;liu_month_timestamp&quot;: 1806508800
}, {
&quot;liu_month&quot;: &quot;五月&quot;,
&quot;liu_month_timestamp&quot;: 1809100800
}, {
&quot;liu_month&quot;: &quot;六月&quot;,
&quot;liu_month_timestamp&quot;: 1811779200
}, {
&quot;liu_month&quot;: &quot;七月&quot;,
&quot;liu_month_timestamp&quot;: 1814371200
}, {
&quot;liu_month&quot;: &quot;八月&quot;,
&quot;liu_month_timestamp&quot;: 1817049600
}, {
&quot;liu_month&quot;: &quot;九月&quot;,
&quot;liu_month_timestamp&quot;: 1819728000
}, {
&quot;liu_month&quot;: &quot;十月&quot;,
&quot;liu_month_timestamp&quot;: 1822320000
}, {
&quot;liu_month&quot;: &quot;冬月&quot;,
&quot;liu_month_timestamp&quot;: 1824998400
}, {
&quot;liu_month&quot;: &quot;腊月&quot;,
&quot;liu_month_timestamp&quot;: 1827590400
}]
},
//注意:只有pan_model为2,且传递了liu_time参数,才有流月盘 liuyue_info 数据
&quot;liuyue_info&quot;: {
&quot;gan_zhi&quot;: &quot;己酉&quot;, //流月干支
&quot;gong_pan&quot;: [ //流月12宫信息
//该流月下的,第1宫信息
{
&quot;liunian_desc&quot;: &quot;年迁移宫&quot;,
&quot;liuyue_desc&quot;: &quot;月官禄宫&quot;,
&quot;minggong&quot;: &quot;迁移宫&quot;,
&quot;yinshou&quot;: &quot;癸亥&quot;,
&quot;jiangxing&quot;: &quot;指背&quot;,
&quot;changsheng&quot;: &quot;绝&quot;,
&quot;daxian&quot;: &quot;65-74&quot;,
&quot;xiaoxian&quot;: &quot;白虎&quot;,
&quot;boshi&quot;: &quot;力士&quot;,
&quot;ziweixing&quot;: &quot;武曲&quot;,
&quot;ziweixing_xingyao&quot;: &quot;平&quot;,
&quot;ziweixing_xiantian_sihua&quot;: &quot;&quot;, //先天盘紫微星四化:无
&quot;ziweixing_liuyue_sihua&quot;: &quot;&quot;, //流月盘紫微星四化:无
&quot;tianfuxing&quot;: &quot;破军&quot;,
&quot;tianfuxing_xingyao&quot;: &quot;陷&quot;,
&quot;tianfuxing_xiantian_sihua&quot;: &quot;禄&quot;,
&quot;tianfuxing_liuyue_sihua&quot;: &quot;&quot;,
&quot;monthxing&quot;: &quot;&quot;,
&quot;monthxing_xingyao&quot;: &quot;&quot;,
&quot;monthxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;monthxing_liuyue_sihua&quot;: &quot;&quot;,
&quot;hourxing&quot;: &quot;台辅&quot;,
&quot;hourxing_xingyao&quot;: &quot;&quot;,
&quot;hourxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;hourxing_liuyue_sihua&quot;: &quot;&quot;,
&quot;yearganxing&quot;: &quot;陀罗&quot;,
&quot;yearganxing_xingyao&quot;: &quot;陷&quot;,
&quot;yearganxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;yearganxing_liuyue_sihua&quot;: &quot;&quot;,
&quot;yearzhixing&quot;: &quot;&quot;,
&quot;yearzhixing_xingyao&quot;: &quot;&quot;,
&quot;yearzhixing_xiantian_sihua&quot;: &quot;&quot;,
&quot;yearzhixing_liuyue_sihua&quot;: &quot;&quot;,
&quot;qitaxing&quot;: &quot;&quot;,
&quot;qitaxing_xingyao&quot;: &quot;&quot;,
&quot;qitaxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;qitaxing_liuyue_sihua&quot;: &quot;&quot;
&quot;liunian_age_str&quot;: &quot;1,13,25,37,49&quot;
&quot;xiaoxian_age_str&quot;: &quot;1,13,25,37,49&quot;
},
//该流月下的,第2宫信息
{......},
//该流月下的,第3宫信息
{......},
......
//该流月下的,第12宫信息
{......}],
],
//该流月下,每个日的流日信息
&quot;liuri_list&quot;: [{
&quot;liu_day&quot;: &quot;初一&quot;,
&quot;liu_day_timestamp&quot;: 1822320000 //该指定流月下,对应的第1个流日时间戳,此时间戳可以作为【流日盘,即pan_model为3】的liu_time参数传递
}, {
&quot;liu_day&quot;: &quot;初二&quot;,
&quot;liu_day_timestamp&quot;: 1822406400
},
......
{
&quot;liu_day&quot;: &quot;廿八&quot;,
&quot;liu_day_timestamp&quot;: 1824652800
}, {
&quot;liu_day&quot;: &quot;廿九&quot;,
&quot;liu_day_timestamp&quot;: 1824739200
}, {
&quot;liu_day&quot;: &quot;三十&quot;,
&quot;liu_day_timestamp&quot;: 1824825600
}]
}
//注意:只有pan_model为3,且传递了liu_time参数,才有流日盘 liuri_info 数据
&quot;liuri_info&quot;: {
&quot;gan_zhi&quot;: &quot;壬午&quot;, //流日干支
&quot;gong_pan&quot;: [//流日12宫信息
//该流日下的,第1宫信息
{
&quot;liuyue_desc&quot;: &quot;月官禄宫&quot;,
&quot;liuri_desc&quot;: &quot;日田宅宫&quot;,
&quot;minggong&quot;: &quot;迁移宫&quot;,
&quot;yinshou&quot;: &quot;癸亥&quot;,
&quot;jiangxing&quot;: &quot;指背&quot;,
&quot;changsheng&quot;: &quot;绝&quot;,
&quot;daxian&quot;: &quot;65-74&quot;,
&quot;xiaoxian&quot;: &quot;白虎&quot;,
&quot;boshi&quot;: &quot;力士&quot;,
&quot;ziweixing&quot;: &quot;武曲&quot;,
&quot;ziweixing_xingyao&quot;: &quot;平&quot;,
&quot;ziweixing_xiantian_sihua&quot;: &quot;&quot;, //先天盘紫微星四化:无
&quot;ziweixing_liuri_sihua&quot;: &quot;&quot;, // 流日盘紫微星四化:无
&quot;tianfuxing&quot;: &quot;破军&quot;,
&quot;tianfuxing_xingyao&quot;: &quot;陷&quot;,
&quot;tianfuxing_xiantian_sihua&quot;: &quot;禄&quot;,
&quot;tianfuxing_liuri_sihua&quot;: &quot;&quot;,
&quot;monthxing&quot;: &quot;&quot;,
&quot;monthxing_xingyao&quot;: &quot;&quot;,
&quot;monthxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;monthxing_liuri_sihua&quot;: &quot;&quot;,
&quot;hourxing&quot;: &quot;台辅&quot;,
&quot;hourxing_xingyao&quot;: &quot;&quot;,
&quot;hourxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;hourxing_liuri_sihua&quot;: &quot;&quot;,
&quot;yearganxing&quot;: &quot;陀罗&quot;,
&quot;yearganxing_xingyao&quot;: &quot;陷&quot;,
&quot;yearganxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;yearganxing_liuri_sihua&quot;: &quot;&quot;,
&quot;yearzhixing&quot;: &quot;&quot;,
&quot;yearzhixing_xingyao&quot;: &quot;&quot;,
&quot;yearzhixing_xiantian_sihua&quot;: &quot;&quot;,
&quot;yearzhixing_liuri_sihua&quot;: &quot;&quot;,
&quot;qitaxing&quot;: &quot;&quot;,
&quot;qitaxing_xingyao&quot;: &quot;&quot;,
&quot;qitaxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;qitaxing_liuri_sihua&quot;: &quot;&quot;
&quot;liunian_age_str&quot;: &quot;1,13,25,37,49&quot;
&quot;xiaoxian_age_str&quot;: &quot;1,13,25,37,49&quot;
},
//该流日下的,第2宫信息
{......},
//该流日下的,第3宫信息
{......},
......
//该流日下的,第12宫信息
{......}],
//该流日下,每日的时辰信息
&quot;liushi_list&quot;: [{
&quot;liu_hour&quot;: &quot;子时&quot;,
&quot;liu_hour_timestamp&quot;: 1824910200 //该指定流日下,对应的第1个时辰时间戳,此时间戳可以作为【流时盘,即pan_model为4】的liu_time参数传递
}, {
&quot;liu_hour&quot;: &quot;丑时&quot;,
&quot;liu_hour_timestamp&quot;: 1824831000
}, {
&quot;liu_hour&quot;: &quot;寅时&quot;,
&quot;liu_hour_timestamp&quot;: 1824838200
}, {
&quot;liu_hour&quot;: &quot;卯时&quot;,
&quot;liu_hour_timestamp&quot;: 1824845400
}, {
&quot;liu_hour&quot;: &quot;辰时&quot;,
&quot;liu_hour_timestamp&quot;: 1824852600
}, {
&quot;liu_hour&quot;: &quot;巳时&quot;,
&quot;liu_hour_timestamp&quot;: 1824859800
}, {
&quot;liu_hour&quot;: &quot;午时&quot;,
&quot;liu_hour_timestamp&quot;: 1824867000
}, {
&quot;liu_hour&quot;: &quot;未时&quot;,
&quot;liu_hour_timestamp&quot;: 1824874200
}, {
&quot;liu_hour&quot;: &quot;申时&quot;,
&quot;liu_hour_timestamp&quot;: 1824881400
}, {
&quot;liu_hour&quot;: &quot;酉时&quot;,
&quot;liu_hour_timestamp&quot;: 1824888600
}, {
&quot;liu_hour&quot;: &quot;戌时&quot;,
&quot;liu_hour_timestamp&quot;: 1824895800
}, {
&quot;liu_hour&quot;: &quot;亥时&quot;,
&quot;liu_hour_timestamp&quot;: 1824903000
}]
},
//注意:只有pan_model为4,且传递了liu_time参数,才有流时盘 liushi_info 数据
&quot;liushi_info&quot;: {
&quot;gan_zhi&quot;: &quot;辛亥&quot;,//流时干支
&quot;gong_pan&quot;: [ //流时12宫信息
//该流时下的,第1宫信息
{
&quot;liuri_desc&quot;: &quot;日田宅宫&quot;,
&quot;liushi_desc&quot;: &quot;时福德宫&quot;,
&quot;minggong&quot;: &quot;迁移宫&quot;,
&quot;yinshou&quot;: &quot;癸亥&quot;,
&quot;jiangxing&quot;: &quot;指背&quot;,
&quot;changsheng&quot;: &quot;绝&quot;,
&quot;daxian&quot;: &quot;65-74&quot;,
&quot;xiaoxian&quot;: &quot;白虎&quot;,
&quot;boshi&quot;: &quot;力士&quot;,
&quot;ziweixing&quot;: &quot;武曲&quot;,
&quot;ziweixing_xingyao&quot;: &quot;平&quot;,
&quot;ziweixing_xiantian_sihua&quot;: &quot;&quot;,//先天盘紫微星四化:无
&quot;ziweixing_liushi_sihua&quot;: &quot;&quot;, //流时盘紫微星四化:无
&quot;tianfuxing&quot;: &quot;破军&quot;,
&quot;tianfuxing_xingyao&quot;: &quot;陷&quot;,
&quot;tianfuxing_xiantian_sihua&quot;: &quot;禄&quot;,
&quot;tianfuxing_liushi_sihua&quot;: &quot;&quot;,
&quot;monthxing&quot;: &quot;&quot;,
&quot;monthxing_xingyao&quot;: &quot;&quot;,
&quot;monthxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;monthxing_liushi_sihua&quot;: &quot;&quot;,
&quot;hourxing&quot;: &quot;台辅&quot;,
&quot;hourxing_xingyao&quot;: &quot;&quot;,
&quot;hourxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;hourxing_liushi_sihua&quot;: &quot;&quot;,
&quot;yearganxing&quot;: &quot;陀罗&quot;,
&quot;yearganxing_xingyao&quot;: &quot;陷&quot;,
&quot;yearganxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;yearganxing_liushi_sihua&quot;: &quot;&quot;,
&quot;yearzhixing&quot;: &quot;&quot;,
&quot;yearzhixing_xingyao&quot;: &quot;&quot;,
&quot;yearzhixing_xiantian_sihua&quot;: &quot;&quot;,
&quot;yearzhixing_liushi_sihua&quot;: &quot;&quot;,
&quot;qitaxing&quot;: &quot;&quot;,
&quot;qitaxing_xingyao&quot;: &quot;&quot;,
&quot;qitaxing_xiantian_sihua&quot;: &quot;&quot;,
&quot;qitaxing_liushi_sihua&quot;: &quot;&quot;
&quot;liunian_age_str&quot;: &quot;1,13,25,37,49&quot;
&quot;xiaoxian_age_str&quot;: &quot;1,13,25,37,49&quot;
},
//该流时下的,第2宫信息
{......},
//该流时下的,第3宫信息
{......},
......
//该流时下的,第12宫信息
{......}]
}
}</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>