Commit bf7873b1 by 杨林龙

优化设备调频

1 parent 220d8ba4
......@@ -350,8 +350,8 @@ public class DeviceFreqService {
private static String transWeekFrequency(String week, String weekTimer) {
StringBuilder sb = new StringBuilder(weekTimer + "/星期");
for (int i = 0; i < week.length(); i++) {
char c = week.charAt(i);
String weekStr = TransWeekEnum.getStrByWeekInt((int) c);
String c = String.valueOf(week.charAt(i));
String weekStr = TransWeekEnum.getStrByWeekInt(Integer.parseInt(c));
sb.append(weekStr);
}
String str = sb.toString();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!