Skip to content

Commit 87c1952

Browse files
authored
🐛 binarywang#2235 【企业微信】 修复获取打卡数据时间检查不正确的问题
1 parent 8c76e60 commit 87c1952

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOaServiceImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public List<WxCpCheckinData> getCheckinData(Integer openCheckinDataType, Date st
5353
long endTimestamp = endTime.getTime() / 1000L;
5454
long startTimestamp = startTime.getTime() / 1000L;
5555

56-
if (endTimestamp - startTimestamp < 0 || endTimestamp - startTimestamp >= MONTH_SECONDS) {
56+
if (endTimestamp - startTimestamp < 0 || endTimestamp - startTimestamp >= MONTH_SECONDS * 1000L) {
5757
throw new WxRuntimeException("获取记录时间跨度不超过一个月");
5858
}
5959

0 commit comments

Comments
 (0)