| | |
| | | |
| | | public void devLogin(){ |
| | | //清除登录信息 |
| | | MApplication.saveConfigBean(new DevConfigBean()); |
| | | EventBus.getDefault().post(new HttpEvent("获取钥匙柜基本信息-请求")); |
| | | getRetrofitService(Apis.class).getCabinetInfoForDriver(LMobileInfo.getDeviceUniqueId()) |
| | | .compose(RxUtils.schedulersTransformer()) |
| | |
| | | toast(MApplication.mContext.getString(R.string.guide_toast_1)); |
| | | } |
| | | }else { |
| | | MApplication.saveConfigBean(new DevConfigBean()); |
| | | toast(response.getMessage()); |
| | | } |
| | | } |
| | |
| | | } |
| | | if(addList.size()>0){ |
| | | DaoManager.getCabinetGridDao().insert(addList); |
| | | } |
| | | |
| | | //todo 去掉 |
| | | CabinetGridDo gridDo = oldMap.get("0101"); |
| | | if(gridDo!=null){ |
| | | EventBus.getDefault().post(new HttpEvent(StringUtil.DateToStrSS(new Date())+"=================>更新数据当前钥匙1:"+gridDo.getCurKeyCode())); |
| | | } |
| | | |
| | | if(updateList.size()>0){ |
| | |
| | | .subscribe(new SimpleObserver<BaseResponse>(rxJavaGcManager) { |
| | | @Override |
| | | public void onNext(@NonNull BaseResponse response) { |
| | | toast("关门接口调用成功"); |
| | | |
| | | } |
| | | |
| | | @Override |