Comparing version 2.2.0 to 2.3.0
@@ -148,7 +148,10 @@ (function (global, calculate) { | ||
var getWhetherLeapMonth = (year, leapMonth) =>{ | ||
var getWhetherLeapMonth = (year, leapMonth) => { | ||
console.log(year, leapMonth) | ||
return time[year][5] == leapMonth ? true : false; | ||
} | ||
} | ||
var chineseMonth = function (num, leapMonth,leapYear) { | ||
var chineseMonth = function (num, leapYear) { | ||
console.error('num=====', num) | ||
console.error('leapYear=====', leapYear) | ||
var res; | ||
@@ -161,3 +164,3 @@ var dateHash = ['', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十']; | ||
} | ||
return (getWhetherLeapMonth(leapYear, leapMonth) ? '闰' : '') + res + '月'; | ||
return (getWhetherLeapMonth(leapYear, num) ? '闰' : '') + res + '月'; | ||
} | ||
@@ -359,3 +362,3 @@ | ||
month: month == getWhetherLeapMonth(leapYear, obj.leapMonth) ? '闰' + obj.leapMonth : month, | ||
month: month, | ||
@@ -370,3 +373,3 @@ day: nowDay, | ||
monthC: chineseMonth(month, obj.leapMonth,leapYear) | ||
monthC: chineseMonth(month, leapYear) | ||
@@ -391,3 +394,3 @@ }) | ||
monthC: chineseMonth(month, obj.leapMonth,leapYear) | ||
monthC: chineseMonth(month, leapYear) | ||
@@ -394,0 +397,0 @@ }) |
@@ -43,3 +43,3 @@ { | ||
}, | ||
"version": "2.2.0" | ||
"version": "2.3.0" | ||
} |
@@ -26,4 +26,2 @@ # moon-time | ||
``` | ||
...... | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
285
12775
26