Parcourir la source

容器换 Jetty

FanQun il y a 2 ans
Parent
commit
89e3157170

+ 1 - 1
src/main/java/com/rshy/project/hy/manager/impl/RshyJkManagerImpl.java

@@ -65,7 +65,7 @@ public class RshyJkManagerImpl implements RshyJkManager {
     @Async("hstTaskExecutor")
     public Future<RshyVo> getRshyInfo(RshyParam rshyParam) {
         // timeout 转成毫秒 这里考虑到网络传输延时等原因,减去300ms
-        rshyParam.setTimeout(rshyParam.getTimeout() * 1000 - 300);
+        rshyParam.setTimeout((int) TimeUnit.MILLISECONDS.convert(rshyParam.getTimeout(), TimeUnit.SECONDS) - 300);
         int jkmTimeout = rshyParam.getTimeout();
         RshyVo rshyVo = new RshyVo();
         PctgkryDTO gkryDTO = new PctgkryDTO();