1
0
mirror of synced 2026-10-17 12:06:11 +08:00

v1.2.20 支持获取当年第几周;支持2种流派获取起运。

This commit is contained in:
6tail
2022-03-12 20:05:14 +08:00
parent 1a15531fb4
commit 249aa36176
8 changed files with 148 additions and 26 deletions

View File

@@ -556,13 +556,24 @@ public class EightChar {
}
/**
* 获取运
* 使用默认流派1获取运
*
* @param gender 性别:1男,0女
* @return 运
*/
public Yun getYun(int gender) {
return new Yun(this, gender);
return getYun(gender, 1);
}
/**
* 获取运
*
* @param gender 性别:1男,0女
* @param sect 流派,1按天数和时辰数计算,3天1年,1天4个月,1时辰10天;2按分钟数计算
* @return 运
*/
public Yun getYun(int gender, int sect) {
return new Yun(this, gender, sect);
}
/**