From e908a9059abb733e8732186dd3a6fd0742e43cfe Mon Sep 17 00:00:00 2001 From: 6tail <6tail@6tail.cn> Date: Wed, 29 Jul 2020 11:53:44 +0800 Subject: [PATCH] =?UTF-8?q?v1.0.18=20=E4=BC=98=E5=8C=96=E5=85=AB=E5=AD=97?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lunar.js | 79 +++++++++++++++++++--------------------------------- package.json | 2 +- 2 files changed, 30 insertions(+), 51 deletions(-) diff --git a/lunar.js b/lunar.js index 14b4539..faa528e 100644 --- a/lunar.js +++ b/lunar.js @@ -1069,82 +1069,61 @@ return l; }, getBaZi:function(){ + var bz = this.getEightChar(); var l = []; - l.push(this.getYearInGanZhiExact()); - l.push(this.getMonthInGanZhiExact()); - l.push(this.getDayInGanZhiExact()); - l.push(this.getTimeInGanZhi()); + l.push(bz.getYear()); + l.push(bz.getMonth()); + l.push(bz.getDay()); + l.push(bz.getTime()); return l; }, getBaZiWuXing:function(){ - var baZi = this.getBaZi(); + var bz = this.getEightChar(); var l = []; - for(var i=0,j=baZi.length;i