修复星座错误;新增数九、三伏。
This commit is contained in:
@@ -379,25 +379,25 @@ public class Solar{
|
||||
* @return 星座
|
||||
*/
|
||||
public String getXingZuo(){
|
||||
int index = 11,m = month,d = day;
|
||||
int y = m*100+d;
|
||||
int index = 11;
|
||||
int y = month*100+day;
|
||||
if(y>=321&&y<=419){
|
||||
index = 0;
|
||||
}else if(y>=420&&y<=520){
|
||||
index = 1;
|
||||
}else if(y>=521&&y<=620){
|
||||
}else if(y>=521&&y<=621){
|
||||
index = 2;
|
||||
}else if(y>=621&&y<=722){
|
||||
}else if(y>=622&&y<=722){
|
||||
index = 3;
|
||||
}else if(y>=723&&y<=822){
|
||||
index = 4;
|
||||
}else if(y>=823&&y<=922){
|
||||
index = 5;
|
||||
}else if(y>=923&&y<=1022){
|
||||
}else if(y>=923&&y<=1023){
|
||||
index = 6;
|
||||
}else if(y>=1023&&y<=1121){
|
||||
}else if(y>=1024&&y<=1122){
|
||||
index = 7;
|
||||
}else if(y>=1122&&y<=1221){
|
||||
}else if(y>=1123&&y<=1221){
|
||||
index = 8;
|
||||
}else if(y>=1222||y<=119){
|
||||
index = 9;
|
||||
|
||||
Reference in New Issue
Block a user