Commit 8fde5bed by xueli.xue

调度超时和Handler匹配不到时,调度状态优化

parent de2dece0
...@@ -85,13 +85,13 @@ public class HandlerRouter { ...@@ -85,13 +85,13 @@ public class HandlerRouter {
// timestamp check // timestamp check
if (System.currentTimeMillis() - requestModel.getTimestamp() > 60000) { if (System.currentTimeMillis() - requestModel.getTimestamp() > 60000) {
return new ResponseModel(ResponseModel.SUCCESS, "Timestamp Timeout."); return new ResponseModel(ResponseModel.FAIL, "Timestamp Timeout.");
} }
// match action // match action
IAction action = ActionRepository.matchAction(requestModel.getAction()); IAction action = ActionRepository.matchAction(requestModel.getAction());
if (action == null) { if (action == null) {
return new ResponseModel(ResponseModel.SUCCESS, "Action match fail."); return new ResponseModel(ResponseModel.FAIL, "Action match fail.");
} }
return action.execute(requestModel); return action.execute(requestModel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment