version:1.1.1
fix: update:修复报错,优化推送
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user