v1.3.4 LunarMonth增加序号、干支、财神方位等;完善纪念日。
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否月斋
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user