|
@ -1414,8 +1414,15 @@ public class OXFaceOnlineActivity extends BaseActivity implements View.OnClickLi |
|
|
LogManager.logInfo(TAG, "检测到离场场景,网络可用,执行离场校验"); |
|
|
LogManager.logInfo(TAG, "检测到离场场景,网络可用,执行离场校验"); |
|
|
performLeaveVerification(base64img); |
|
|
performLeaveVerification(base64img); |
|
|
} else { |
|
|
} else { |
|
|
LogManager.logWarning(TAG, "检测到离场场景,但网络不可用"); |
|
|
|
|
|
showLoadingStatus("无网络连接,请检查网络设置"); |
|
|
|
|
|
|
|
|
LogManager.logWarning(TAG, "检测到离场场景,但网络不可用,直接开启B门"); |
|
|
|
|
|
showLoadingStatus("网络不可用,直接开门"); |
|
|
|
|
|
|
|
|
|
|
|
// 直接开启B门,防止用户卡在场内 |
|
|
|
|
|
if (isUDPInitialized && udpExample != null) { |
|
|
|
|
|
LogManager.logInfo(TAG, "离场场景网络不可用,直接开启B门"); |
|
|
|
|
|
udpExample.handleFaceRecognitionSuccess(false); // 开启B门 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 3秒后隐藏提示 |
|
|
// 3秒后隐藏提示 |
|
|
new Handler().postDelayed(new Runnable() { |
|
|
new Handler().postDelayed(new Runnable() { |
|
|
@Override |
|
|
@Override |
|
@ -1423,9 +1430,6 @@ public class OXFaceOnlineActivity extends BaseActivity implements View.OnClickLi |
|
|
hideLoadingStatus(); |
|
|
hideLoadingStatus(); |
|
|
} |
|
|
} |
|
|
}, 3000); |
|
|
}, 3000); |
|
|
|
|
|
|
|
|
// 网络不可用时,不执行任何门禁操作,保持安全 |
|
|
|
|
|
LogManager.logInfo(TAG, "离场场景网络不可用,等待网络恢复"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|