Merge pull request #401 from gweesin/fix/statistics-failure

fix: statistics details failure
This commit is contained in:
6dylan6 2024-07-28 22:53:42 +08:00 committed by GitHub
commit 1ff717b679
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -114,7 +114,10 @@ async function bean() {
} }
} }
} else { } else {
$.errorMsg = `数据异常`; // 完全无数据时才抛出异常,否则返回之前统计出来的数据
if (!todayArr.length && !yesterdayArr.length) {
$.errorMsg = `数据异常`;
}
// $.msg($.name, ``, `账号${$.index}${$.nickName}\n${$.errorMsg}`); // $.msg($.name, ``, `账号${$.index}${$.nickName}\n${$.errorMsg}`);
t = 1; t = 1;
} }