1
0
mirror of synced 2025-12-15 17:48:04 +08:00

v1.2.29 每日宜忌支持2种流派。

This commit is contained in:
6tail
2022-03-26 10:19:27 +08:00
parent 98fb502c02
commit 66d16db39e
2 changed files with 5 additions and 5 deletions

View File

@@ -1174,11 +1174,11 @@
} }
return LunarUtil.POSITION_TAI_MONTH[m-1]; return LunarUtil.POSITION_TAI_MONTH[m-1];
}, },
getDayYi:function(){ getDayYi:function(sect){
return LunarUtil.getDayYi(this.getMonthInGanZhiExact(),this.getDayInGanZhi()); return LunarUtil.getDayYi(2 == sect ? this.getMonthInGanZhiExact() : this.getMonthInGanZhi(), this.getDayInGanZhi());
}, },
getDayJi:function(){ getDayJi:function(sect){
return LunarUtil.getDayJi(this.getMonthInGanZhiExact(),this.getDayInGanZhi()); return LunarUtil.getDayJi(2 == sect ? this.getMonthInGanZhiExact() : this.getMonthInGanZhi(), this.getDayInGanZhi());
}, },
getDayJiShen:function(){ getDayJiShen:function(){
return LunarUtil.getDayJiShen(this.getMonth(),this.getDayInGanZhi()); return LunarUtil.getDayJiShen(this.getMonth(),this.getDayInGanZhi());

View File

@@ -1,6 +1,6 @@
{ {
"name": "lunar-javascript", "name": "lunar-javascript",
"version": "1.2.28", "version": "1.2.29",
"description": "lunar is a calendar library for Solar and Chinese Lunar.", "description": "lunar is a calendar library for Solar and Chinese Lunar.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {