|
@@ -1195,10 +1195,11 @@ class CallingdoorActivity :BaseActivity<CallingdoorActivityPresenter, Callingdoo
|
|
/*
|
|
/*
|
|
* 检查网络情况,若tcp断开连接多次且IP也是空的则网络异常,重启设备
|
|
* 检查网络情况,若tcp断开连接多次且IP也是空的则网络异常,重启设备
|
|
*/
|
|
*/
|
|
- if ("rk3128".equals(Build.MODEL)) {
|
|
|
|
|
|
+ if ("rk3128".equals(Build.MODEL) || "rk3368".equals(Build.MODEL) || "WDMK_I".equals(Build.MODEL) || "WDMKI".equals(Build.MODEL)) {
|
|
var count = SettingConfig.getNetErrResetCount(this)
|
|
var count = SettingConfig.getNetErrResetCount(this)
|
|
if (!Constant.TCP_CONNECTED && TextUtils.isEmpty(NetHelper.getInstance().localIP)) {
|
|
if (!Constant.TCP_CONNECTED && TextUtils.isEmpty(NetHelper.getInstance().localIP)) {
|
|
netErrCount++
|
|
netErrCount++
|
|
|
|
+ Log.e(TAG, "network error!!! ==> netErrCount: $netErrCount, count: $count")
|
|
} else {
|
|
} else {
|
|
netErrCount = 0
|
|
netErrCount = 0
|
|
if (count > 0) {
|
|
if (count > 0) {
|