Skip to content

Commit

Permalink
Merge pull request #18 from wacj1425/patch-1
Browse files Browse the repository at this point in the history
星座返回错误和一个翻译的小问题
  • Loading branch information
lilianjin authored May 11, 2022
2 parents 2caa169 + 18a47df commit df7b6d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IdentityCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit df7b6d3

Please sign in to comment.