mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2026-01-07 19:31:48 +08:00
fix bug and enhance
This commit is contained in:
parent
267200c434
commit
d977e05a3d
@ -23,12 +23,12 @@ public enum AuthUserGender {
|
||||
if (code == null) {
|
||||
return UNKNOW;
|
||||
}
|
||||
String[] males = {"m", "男", "1", "male", "F"};
|
||||
if (Arrays.asList(males).contains(code)) {
|
||||
String[] males = {"m", "男", "1", "male"};
|
||||
if (Arrays.asList(males).contains(code.toLowerCase())) {
|
||||
return MALE;
|
||||
}
|
||||
String[] females = {"f", "女", "0", "female"};
|
||||
if (Arrays.asList(females).contains(code)) {
|
||||
if (Arrays.asList(females).contains(code.toLowerCase())) {
|
||||
return FEMALE;
|
||||
}
|
||||
return UNKNOW;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user