Skip to content

Commit

Permalink
update RxDataTool.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vondear authored and Vondear committed Apr 23, 2019
1 parent 39dd7c8 commit 098ca0c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion RxKit/src/main/java/com/vondear/rxtool/RxDataTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static boolean isNumber(String value) {
* @return
*/
public static String getAstro(int month, int day) {
String[] starArr = {"魔羯座", "水瓶座", "双鱼座", "牡羊座", "金牛座", "双子座", "巨蟹座", "狮子座", "处女座", "天秤座", "天蝎座", "射手座"};
String[] starArr = {"魔羯座", "水瓶座", "双鱼座", "白羊座", "金牛座", "双子座", "巨蟹座", "狮子座", "处女座", "天秤座", "天蝎座", "射手座"};
int[] DayArr = {22, 20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22}; // 两个星座分割日

if (month <= 0 || day <= 0) {
Expand All @@ -161,6 +161,18 @@ public static String getAstro(int month, int day) {
return starArr[index];
}

/**
* 年份判断生肖
* @param year
* @return
*/
private String getAnimalYearName(int year) {//---------计算生肖方法-------------
String[] animalYear = new String[]{"猴", "鸡", "狗", "猪", "鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊"};
String name = animalYear[(year) % 12];
return name;
}


/**
* 隐藏手机中间4位号码
* 130****0000
Expand Down

0 comments on commit 098ca0c

Please sign in to comment.