修正编译错误,优化部分逻辑

This commit is contained in:
imhao183
2019-12-30 08:54:46 +08:00
parent 190da8934f
commit 9baa1f9b23
7 changed files with 13 additions and 9 deletions
@@ -50,7 +50,7 @@ abstract public class AdminAction extends Action {
Long ts;
try {
ts = Long.parseLong(timestamp);
} catch (NumberFormatException e) {
} catch (Exception e) {
e.printStackTrace();
return ErrorCode.INVALID_PARAMETER;
}
@@ -45,7 +45,7 @@ abstract public class ChannelAction extends Action {
Long ts;
try {
ts = Long.parseLong(timestamp);
} catch (NumberFormatException e) {
} catch (Exception e) {
e.printStackTrace();
return ErrorCode.INVALID_PARAMETER;
}
@@ -47,7 +47,7 @@ abstract public class RobotAction extends Action {
Long ts;
try {
ts = Long.parseLong(timestamp);
} catch (NumberFormatException e) {
} catch (Exception e) {
e.printStackTrace();
return ErrorCode.INVALID_PARAMETER;
}