mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-07-30 22:10:26 +08:00
🐛 #2251 【企业微信】 修复获取打卡数据时间检查不正确的问题
This commit is contained in:
parent
16d98a6142
commit
72f3005ac6
@ -49,7 +49,7 @@ public class WxCpOaServiceImpl implements WxCpOaService {
|
||||
long endTimestamp = endTime.getTime() / 1000L;
|
||||
long startTimestamp = startTime.getTime() / 1000L;
|
||||
|
||||
if (endTimestamp - startTimestamp < 0 || endTimestamp - startTimestamp >= MONTH_SECONDS * 1000L) {
|
||||
if (endTimestamp - startTimestamp < 0 || endTimestamp - startTimestamp >= MONTH_SECONDS) {
|
||||
throw new WxRuntimeException("获取记录时间跨度不超过一个月");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user