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 098ca0c commit 0b4b65a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RxKit/src/main/java/com/vondear/rxtool/RxDataTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,11 @@ public static String getAstro(int month, int day) {

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

0 comments on commit 0b4b65a

Please sign in to comment.