|  |  |  | 
|---|
|  |  |  | * @param type //0:管理员,1:司机 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public void getMemberIdByCode(String code,String type){ | 
|---|
|  |  |  | //showLoading(true); | 
|---|
|  |  |  | getRetrofitService(Apis.class).getMemberIdByCode(code) | 
|---|
|  |  |  | GetMemberIdByCodeParam param = new GetMemberIdByCodeParam(); | 
|---|
|  |  |  | param.setUserType("0".equals(type)?1:0); | 
|---|
|  |  |  | param.setCode(code); | 
|---|
|  |  |  | getRetrofitService(Apis.class).getMemberIdByCode(ParamsUtil.encodeRequestBody(param)) | 
|---|
|  |  |  | .compose(RxUtils.schedulersTransformer()) | 
|---|
|  |  |  | .subscribe(new SimpleObserver<BaseResponse<Integer>>(rxJavaGcManager) { | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | //toast(response.getMessage()); | 
|---|
|  |  |  | doAction(8,response.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public void alcoholTestAlarm(String data){ | 
|---|
|  |  |  | AlcoholTestAlarmParam param = new AlcoholTestAlarmParam(); | 
|---|
|  |  |  | param.setCabinetId(MApplication.getConfigBean().getId()); | 
|---|
|  |  |  | param.setMemberId(MApplication.getLoginBean().getMemberId()); | 
|---|
|  |  |  | param.setAlcoholNum(data); | 
|---|
|  |  |  | showLoading(true); | 
|---|