1
0
mirror of synced 2026-02-04 12:07:59 +08:00

新增每日宜忌

This commit is contained in:
6tail
2020-05-26 14:38:55 +08:00
parent e860f920ac
commit 9ba2303db5

View File

@@ -1256,7 +1256,7 @@ public class LunarUtil{
right = right.substring(index+3);
String left = right;
if (left.contains("=")) {
left = left.substring(0, right.indexOf("=") - 2);
left = left.substring(0, left.indexOf("=") - 2);
}
boolean matched = false;
String months = left.substring(0, left.indexOf(":"));
@@ -1268,7 +1268,6 @@ public class LunarUtil{
}
}
if(matched) {
StringBuilder yj = new StringBuilder();
String ys = left.substring(left.indexOf(":") + 1, left.indexOf(","));
for (int i = 0, j = ys.length(); i < j; i += 2) {
String m = ys.substring(i, i + 2);
@@ -1297,7 +1296,7 @@ public class LunarUtil{
right = right.substring(index+3);
String left = right;
if (left.contains("=")) {
left = left.substring(0, right.indexOf("=") - 2);
left = left.substring(0, left.indexOf("=") - 2);
}
boolean matched = false;
String months = left.substring(0, left.indexOf(":"));
@@ -1309,7 +1308,6 @@ public class LunarUtil{
}
}
if(matched) {
StringBuilder yj = new StringBuilder();
String js = left.substring(left.indexOf(",") + 1);
for (int i = 0, j = js.length(); i < j; i += 2) {
String m = js.substring(i, i + 2);