version:1.1.1

fix:
update:修复报错,优化推送
This commit is contained in:
2023-10-31 18:11:25 +08:00
parent 62fa007695
commit 3d15a60ac9
10 changed files with 94 additions and 94 deletions

View File

@@ -107,8 +107,13 @@ public class TimeControlManager {
Gson gson = new Gson();
Type Type = new TypeToken<TimeManageSn>() {
}.getType();
TimeManageSn machineControl = gson.fromJson(jsonString, Type);
return machineControl;
try {
TimeManageSn machineControl = gson.fromJson(jsonString, Type);
return machineControl;
} catch (Exception e) {
Log.e(TAG, "getGlobalMachineControl: " + e.getMessage());
return null;
}
}
} else {
return mGlobalMachineControl;