From dbc14587e185917238ab2cb5dd3abe14ce204823 Mon Sep 17 00:00:00 2001 From: de-memory <972985083@qq.com> Date: Sun, 9 Oct 2022 14:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=9F=E5=BA=A7=E8=AE=A1=E7=AE=97=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/IdentityCard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IdentityCard.php b/src/IdentityCard.php index dd5c22a..6b4d061 100644 --- a/src/IdentityCard.php +++ b/src/IdentityCard.php @@ -325,8 +325,8 @@ public function getConstellation(): string $day = (int) substr(static::$idCard, 12, 2); - if ($day >= $this->constellationEdgeDays[$month]) { - $month = $month + 1; + if ($day < $this->constellationEdgeDays[$month]) { + $month = $month - 1; } if ($month >= 0) {