1
0
mirror of synced 2025-12-28 00:08:00 +08:00

v1.3.4 LunarMonth增加序号、干支、财神方位等;完善纪念日。

This commit is contained in:
6tail
2023-03-27 21:39:16 +08:00
parent 586a8d3f1e
commit 3ef8d0c657
15 changed files with 301 additions and 40 deletions

View File

@@ -185,8 +185,7 @@ public class EightChar {
}
private String getDiShi(int zhiIndex) {
int offset = CHANG_SHENG_OFFSET.get(getDayGan());
int index = offset + (getDayGanIndex() % 2 == 0 ? zhiIndex : -zhiIndex);
int index = CHANG_SHENG_OFFSET.get(getDayGan()) + (getDayGanIndex() % 2 == 0 ? zhiIndex : -zhiIndex);
if (index >= 12) {
index -= 12;
}