|
@@ -85,7 +85,7 @@ public class AutoErpSigninUitl implements OnHttpResultListener {
|
|
|
public void signinWork(WorkModel model) {
|
|
public void signinWork(WorkModel model) {
|
|
|
//1.判读mac地址是否符合 3.签到
|
|
//1.判读mac地址是否符合 3.签到
|
|
|
if (!MyApplication.getInstance().isNetworkActive()) {
|
|
if (!MyApplication.getInstance().isNetworkActive()) {
|
|
|
- CommonUtil.SaveAutoLogtoLocal("自动打卡", "网络未连接");
|
|
|
|
|
|
|
+ CommonUtil.saveAutoLogtoLocal("自动打卡", "网络未连接");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
MacAndIDUtil util = new MacAndIDUtil();
|
|
MacAndIDUtil util = new MacAndIDUtil();
|
|
@@ -111,7 +111,7 @@ public class AutoErpSigninUitl implements OnHttpResultListener {
|
|
|
if (model == null) return;
|
|
if (model == null) return;
|
|
|
if (!MyApplication.getInstance().isNetworkActive()) {
|
|
if (!MyApplication.getInstance().isNetworkActive()) {
|
|
|
notificationManage.sendNotification(ct, R.string.out_net_signin, MissionActivity.class);
|
|
notificationManage.sendNotification(ct, R.string.out_net_signin, MissionActivity.class);
|
|
|
- CommonUtil.SaveAutoLogtoLocal("外勤签到", "网络未连接");
|
|
|
|
|
|
|
+ CommonUtil.saveAutoLogtoLocal("自动外勤", "网络未连接");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
@@ -491,7 +491,7 @@ public class AutoErpSigninUitl implements OnHttpResultListener {
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
if (e != null) {
|
|
if (e != null) {
|
|
|
LogUtil.i("result=" + e.getMessage());
|
|
LogUtil.i("result=" + e.getMessage());
|
|
|
- CommonUtil.SaveAutoLogtoLocal("APP监控", e.getMessage());
|
|
|
|
|
|
|
+ CommonUtil.saveAutoLogtoLocal("APP监控", e.getMessage());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -515,12 +515,12 @@ public class AutoErpSigninUitl implements OnHttpResultListener {
|
|
|
intent.setAction(AutoErpService.CHANGE_MISSION_TASK);
|
|
intent.setAction(AutoErpService.CHANGE_MISSION_TASK);
|
|
|
MsgBroadcast.sendLocalBroadcast(intent);
|
|
MsgBroadcast.sendLocalBroadcast(intent);
|
|
|
if (!StringUtils.isEmpty(message))
|
|
if (!StringUtils.isEmpty(message))
|
|
|
- CommonUtil.SaveAutoLogtoLocal("外勤签到", message);
|
|
|
|
|
|
|
+ CommonUtil.saveAutoLogtoLocal("自动外勤", message);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (!StringUtils.isEmpty(msg))
|
|
if (!StringUtils.isEmpty(msg))
|
|
|
- CommonUtil.SaveAutoLogtoLocal("APP监控", msg);
|
|
|
|
|
|
|
+ CommonUtil.saveAutoLogtoLocal("APP监控", msg);
|
|
|
if (!isErrorMac && !StringUtils.isEmpty(msg)) {
|
|
if (!isErrorMac && !StringUtils.isEmpty(msg)) {
|
|
|
isErrorMac = true;
|
|
isErrorMac = true;
|
|
|
notificationManage.sendNotification(MyApplication.getInstance(), msg, WorkActivity.class);
|
|
notificationManage.sendNotification(MyApplication.getInstance(), msg, WorkActivity.class);
|
|
@@ -819,7 +819,7 @@ public class AutoErpSigninUitl implements OnHttpResultListener {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
if (saveOk) {
|
|
if (saveOk) {
|
|
|
- CommonUtil.SaveAutoLogtoLocal("APP启动", "APP外勤任务开启");
|
|
|
|
|
|
|
+ CommonUtil.saveAutoLogtoLocal("APP启动", "APP外勤任务开启");
|
|
|
//TODO 保存异常数据库
|
|
//TODO 保存异常数据库
|
|
|
OAHttpHelper.getInstance().post(new Runnable() {
|
|
OAHttpHelper.getInstance().post(new Runnable() {
|
|
|
@Override
|
|
@Override
|