Skip to content

Commit

Permalink
Merge pull request #2 from ailbs/fix_bug
Browse files Browse the repository at this point in the history
fix bug: 生肖计算有误
  • Loading branch information
mumubusu committed Nov 11, 2020
2 parents 98bd3d7 + 99b0e94 commit 30519ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if (typeof idno == "undefined") {
}];
} else {
let birthday = info.birthday.toString();
let zodiacValue = zodiac.getZodiac(info.birthday);
let zodiacValue = zodiac.getZodiac(birthday.slice(0, 4));
birthday = birthday.slice(0, 4) + "/" + birthday.slice(4, 6) + "/" + birthday.slice(6,8);
let gender = info.gender == "M" ? "男" : "女";
result_values = [
Expand Down

0 comments on commit 30519ae

Please sign in to comment.