update 超时时间设置为1秒

This commit is contained in:
Lemon
2024-11-04 08:13:39 +08:00
parent 119ae2699d
commit d331e2ec5f

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, 2, TimeUnit.SECONDS);
return this.send(msg, pileSn, frameTypeCode, 1, TimeUnit.SECONDS);
}
public byte[] send(byte[] msg, String pileSn, Enum<YKCFrameTypeCode> frameTypeCode, long timeout, TimeUnit unit) throws Exception {