mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-06-28 13:16:19 +08:00
🐛 #2235 【企业微信】 修复获取打卡数据时间检查不正确的问题
This commit is contained in:
parent
8c76e60675
commit
87c1952eef
@ -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("获取记录时间跨度不超过一个月");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user