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

v1.0.25 修复值月九星数组下标越界的问题。

This commit is contained in:
6tail
2020-10-16 21:47:00 +08:00
parent 3a96833a9d
commit bd9f0f4086
2 changed files with 2 additions and 2 deletions

View File

@@ -1278,7 +1278,7 @@
// 寅月起,所以需要-2 // 寅月起,所以需要-2
var monthIndex = this._p.monthZhiIndex-2; var monthIndex = this._p.monthZhiIndex-2;
if(monthIndex<0){ if(monthIndex<0){
monthIndex += 12 monthIndex += 12;
} }
var index = start-monthIndex-1; var index = start-monthIndex-1;
if(index<0){ if(index<0){

View File

@@ -1,6 +1,6 @@
{ {
"name": "lunar-javascript", "name": "lunar-javascript",
"version": "1.0.24", "version": "1.0.25",
"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": {