修复B站每日签到没有周任务时的异常

This commit is contained in:
Yutousama 2023-03-02 09:57:16 +08:00
parent a27d6c5a35
commit 48501b09ff

View File

@ -18,6 +18,13 @@ public class AppUserTask {
private long weekGroup; private long weekGroup;
private DayTask dayTask; private DayTask dayTask;
public List<WeekTask> getWeekTask() {
if(weekTask == null){
weekTask=new ArrayList<>();
}
return weekTask;
}
public static String toMessageFormat(AppUserTask oldTask, AppUserTask newTask) { public static String toMessageFormat(AppUserTask oldTask, AppUserTask newTask) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("当前电池数量:").append(String.format("%.2f → %.2f", sb.append("当前电池数量:").append(String.format("%.2f → %.2f",