From 8b4e24196d5ff2969c4aaf4628927e20f94e7ef2 Mon Sep 17 00:00:00 2001 From: blestland <8131114+blestland@user.noreply.gitee.com> Date: Sat, 18 Dec 2021 23:35:50 +0800 Subject: [PATCH] =?UTF-8?q?V1.2.17.001=20=E4=BF=AE=E6=AD=A3=E5=9C=A8?= =?UTF-8?q?=E5=8F=8D=E5=A4=8D=E5=88=87=E6=8D=A2=E6=9C=88=E4=BB=BD=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E9=81=93=E5=8E=86=E7=9A=84=E8=8A=82=E6=97=A5=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E9=87=8D=E5=A4=8D=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lunar.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lunar.js b/lunar.js index cce4512..7807492 100644 --- a/lunar.js +++ b/lunar.js @@ -3990,9 +3990,10 @@ getMonthInChinese:function(){return this._p.lunar.getMonthInChinese();}, getDayInChinese:function(){return this._p.lunar.getDayInChinese();}, getFestivals:function(){ - var l=TaoUtil.FESTIVAL[this.getMonth()+'-'+this.getDay()]; - if(!l){ - l=[]; + var l = []; + var fest=TaoUtil.FESTIVAL[this.getMonth()+'-'+this.getDay()]; + if(fest){ + l = l.concat(fest); } var jq = this._p.lunar.getJieQi(); if('冬至'===jq){ -- Gitee