We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7a1c6 commit 60ed822Copy full SHA for 60ed822
base_iotutils/src/main/java/com/face_chtj/base_iotutils/network/NetUtils.java
@@ -324,7 +324,7 @@ public static boolean reloadDnsPing() {
324
//先判断本机是否网络API返回正常
325
if (getNetWorkType() != NETWORK_NO) {
326
long beforeTime = BaseIotUtils.instance().dnsRefreshTime;
327
- if (beforeTime > 1) {
+ if (beforeTime <= 0) {
328
//如果没有记录过时间 那么证明第一次加载DNS列表
329
BaseIotUtils.instance().dnsRefreshTime = System.currentTimeMillis();//记录这一次操作的时间
330
//如果在通过的列表中 有网络正常通过的那么直接返回true ,因为的重新加载的列表中会对所有的列表做检测
0 commit comments