Browse Source

update

master
zhaohe 1 year ago
parent
commit
eb94a3e3ff
  1. 3
      api/front_msg_processer.cpp

3
api/front_msg_processer.cpp

@ -1,4 +1,5 @@
#include "front_msg_processer.hpp"
#include "iflytop/core/error/error_code.hpp"
using namespace iflytop;
@ -9,7 +10,7 @@ void FrontMsgProcesser::processMsg(json& cmd, json& receipt) {
m_msgProcesserMap[cmdstr](cmd, receipt);
} else {
logger->error("unknown command: {}", cmdstr);
receipt["result"] = "error";
receipt["ackcode"] = err::kfail;
receipt["reason"] = "unknown command";
}
}

Loading…
Cancel
Save