1
0
mirror of synced 2026-10-22 06:26:11 +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

@@ -74,6 +74,10 @@ public class Foto {
return lunar.getDayInChinese();
}
/**
* 获取因果犯忌
* @return 因果犯忌
*/
public List<FotoFestival> getFestivals() {
List<FotoFestival> l = new ArrayList<FotoFestival>();
List<FotoFestival> fs = FotoUtil.FESTIVAL.get(getMonth() + "-" + getDay());
@@ -83,6 +87,19 @@ public class Foto {
return l;
}
/**
* 获取纪念日
* @return 纪念日
*/
public List<String> getOtherFestivals() {
List<String> l = new ArrayList<String>();
List<String> fs = FotoUtil.OTHER_FESTIVAL.get(getMonth() + "-" + getDay());
if (null != fs) {
l.addAll(fs);
}
return l;
}
/**
* 是否月斋
*