From 66d16db39eb0a8cbb47ce04697b3a3d8508b4dd3 Mon Sep 17 00:00:00 2001 From: 6tail <6tail@6tail.cn> Date: Sat, 26 Mar 2022 10:19:27 +0800 Subject: [PATCH] =?UTF-8?q?v1.2.29=20=E6=AF=8F=E6=97=A5=E5=AE=9C=E5=BF=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=812=E7=A7=8D=E6=B5=81=E6=B4=BE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lunar.js | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lunar.js b/lunar.js index eaf9cbd..571b39d 100644 --- a/lunar.js +++ b/lunar.js @@ -1174,11 +1174,11 @@ } return LunarUtil.POSITION_TAI_MONTH[m-1]; }, - getDayYi:function(){ - return LunarUtil.getDayYi(this.getMonthInGanZhiExact(),this.getDayInGanZhi()); + getDayYi:function(sect){ + return LunarUtil.getDayYi(2 == sect ? this.getMonthInGanZhiExact() : this.getMonthInGanZhi(), this.getDayInGanZhi()); }, - getDayJi:function(){ - return LunarUtil.getDayJi(this.getMonthInGanZhiExact(),this.getDayInGanZhi()); + getDayJi:function(sect){ + return LunarUtil.getDayJi(2 == sect ? this.getMonthInGanZhiExact() : this.getMonthInGanZhi(), this.getDayInGanZhi()); }, getDayJiShen:function(){ return LunarUtil.getDayJiShen(this.getMonth(),this.getDayInGanZhi()); diff --git a/package.json b/package.json index 5084197..ac6fc87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lunar-javascript", - "version": "1.2.28", + "version": "1.2.29", "description": "lunar is a calendar library for Solar and Chinese Lunar.", "main": "index.js", "scripts": {