超时时间设置为2秒

This commit is contained in:
Guoqs
2024-11-03 14:48:09 +08:00
parent 8e4cdb6fd1
commit 119ae2699d

View File

@@ -62,7 +62,7 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
);
public byte[] send(byte[] msg, String pileSn, Enum<YKCFrameTypeCode> frameTypeCode) throws Exception {
return this.send(msg, pileSn, frameTypeCode, 5, TimeUnit.SECONDS);
return this.send(msg, pileSn, frameTypeCode, 2, TimeUnit.SECONDS);
}
public byte[] send(byte[] msg, String pileSn, Enum<YKCFrameTypeCode> frameTypeCode, long timeout, TimeUnit unit) throws Exception {