|
|
@@ -9,30 +9,21 @@ import com.bonait.bnframework.common.constant.ConfigName; |
|
|
|
import com.bonait.bnframework.common.constant.Constants; |
|
|
|
import com.bonait.bnframework.common.constant.DataBus; |
|
|
|
import com.bonait.bnframework.common.db.QueryDB; |
|
|
|
import com.bonait.bnframework.common.db.file.DBHelper; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_ALERTLOG; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_CLOUDDATA; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_GOODS; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_GOODSRECIPE; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_LOG; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_PLCADDRESS; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_SILOS; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_SILOSANDMATERIAL; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_USER; |
|
|
|
import com.bonait.bnframework.common.db.res.AlertLogEnum; |
|
|
|
import com.bonait.bnframework.common.db.res.ResGoodsRecipe; |
|
|
|
import com.bonait.bnframework.common.db.res.UserLogEnum; |
|
|
|
import com.bonait.bnframework.common.helper.CrashHandler; |
|
|
|
import com.bonait.bnframework.common.helper.I.IMessageLogNotify; |
|
|
|
import com.bonait.bnframework.common.helper.MessageLog; |
|
|
|
import com.bonait.bnframework.common.helper.SdCart; |
|
|
|
import com.bonait.bnframework.common.modbus.ModbusTcpHelper; |
|
|
|
import com.bonait.bnframework.common.notification.MainNotification; |
|
|
|
import com.bonait.bnframework.common.utils.AppUtils; |
|
|
|
import com.bonait.bnframework.common.utils.NetworkUtils; |
|
|
|
import com.bonait.bnframework.common.utils.PreferenceUtils; |
|
|
|
import com.bonait.bnframework.common.utils.ToastUtils; |
|
|
|
import com.bonait.bnframework.common.utils.WifiInterceptor; |
|
|
|
import com.bonait.bnframework.manager.ActivityLifecycleManager; |
|
|
|
import com.lzy.okgo.OkGo; |
|
|
|
import com.lzy.okgo.cache.CacheEntity; |
|
|
@@ -215,8 +206,8 @@ public class MainInit { |
|
|
|
public void ErrorMsg(String msg) { |
|
|
|
if(msg.contains("msg:com.serotonin.modbus4j.exception")) |
|
|
|
{ |
|
|
|
ModbusTcpHelper.get().release();//释放modbus |
|
|
|
ConfigName.getInstance().PlcIsConnect=false; |
|
|
|
//ModbusTcpHelper.get().release();//释放modbus |
|
|
|
//ConfigName.getInstance().PlcIsConnect=false; |
|
|
|
|
|
|
|
BPA_ALERTLOG log = new BPA_ALERTLOG(); |
|
|
|
log.userID = ConfigName.getInstance().user.userID; |
|
|
|