|
@@ -14,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.time.Instant;
|
|
|
import java.util.*;
|
|
|
|
|
|
@Slf4j
|
|
@@ -66,7 +67,9 @@ public class RiskRuleConfigService {
|
|
|
return ruleResult;
|
|
|
}
|
|
|
WorkWechatRoomInfo roomInfo = examples.get(0);
|
|
|
- long roomUpdateTime = roomInfo.getUpdateTime().getTime()/1000;
|
|
|
+ Instant instant = roomInfo.getUpdateTime().toInstant(); // 转为UTC时间
|
|
|
+ long roomUpdateTime = instant.getEpochSecond(); // 直接获取秒级时间戳
|
|
|
+// long roomUpdateTime = roomInfo.getUpdateTime().getTime()/1000;
|
|
|
log.info("getFixedRulesForThisChat, roomId: {}, roomUpdateTime: {}", roomId, roomUpdateTime);
|
|
|
List<UserListFromAdPlatformModel.ChatMember> memberList = getUserListFromAdPlatform(chatId);
|
|
|
if (memberList == null || memberList.isEmpty()) {
|