🐛 #2235 【企业微信】 修复获取打卡数据时间检查不正确的问题

This commit is contained in:
longliveh 2021-08-04 17:32:18 +08:00 committed by GitHub
parent 8c76e60675
commit 87c1952eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ public class WxCpOaServiceImpl implements WxCpOaService {
long endTimestamp = endTime.getTime() / 1000L;
long startTimestamp = startTime.getTime() / 1000L;
if (endTimestamp - startTimestamp < 0 || endTimestamp - startTimestamp >= MONTH_SECONDS) {
if (endTimestamp - startTimestamp < 0 || endTimestamp - startTimestamp >= MONTH_SECONDS * 1000L) {
throw new WxRuntimeException("获取记录时间跨度不超过一个月");
}