|
@ -91,7 +91,7 @@ void FrontMsgProcesser::processMsg(shared_ptr<MsgProcessContext> cxt) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (int(cxt->receipt["ackcode"]) != 0) { |
|
|
if (int(cxt->receipt["ackcode"]) != 0) { |
|
|
cxt->receipt["message"] = fmt::format("[{}]", ecode2str(cxt->receipt["ackcode"])); |
|
|
|
|
|
|
|
|
cxt->receipt["message"] = fmt::format("{}", ecode2str(cxt->receipt["ackcode"])); |
|
|
cxt->receipt["extMessage"] = fmt::format("{}", cxt->ackcodeExtMessage); |
|
|
cxt->receipt["extMessage"] = fmt::format("{}", cxt->ackcodeExtMessage); |
|
|
} |
|
|
} |
|
|
if (cxt->rely.empty() == false) { |
|
|
if (cxt->rely.empty() == false) { |
|
@ -100,7 +100,7 @@ void FrontMsgProcesser::processMsg(shared_ptr<MsgProcessContext> cxt) { |
|
|
|
|
|
|
|
|
} catch (const appexception& e) { |
|
|
} catch (const appexception& e) { |
|
|
cxt->receipt["ackcode"] = e.ecode; |
|
|
cxt->receipt["ackcode"] = e.ecode; |
|
|
cxt->receipt["message"] = fmt::format("[{}]", ecode2str(cxt->receipt["ackcode"])); |
|
|
|
|
|
|
|
|
cxt->receipt["message"] = fmt::format("{}", ecode2str(cxt->receipt["ackcode"])); |
|
|
cxt->receipt["traceinfo"] = fmt::format("{}", e.traceinfo); |
|
|
cxt->receipt["traceinfo"] = fmt::format("{}", e.traceinfo); |
|
|
cxt->receipt["description"] = fmt::format("{}", e.description); |
|
|
cxt->receipt["description"] = fmt::format("{}", e.description); |
|
|
cxt->receipt["fromClass"] = fmt::format("{}", e.fromClass); |
|
|
cxt->receipt["fromClass"] = fmt::format("{}", e.fromClass); |
|
@ -114,6 +114,6 @@ void FrontMsgProcesser::processMsg(shared_ptr<MsgProcessContext> cxt) { |
|
|
} else { |
|
|
} else { |
|
|
logger->error("unknown command: {}", key); |
|
|
logger->error("unknown command: {}", key); |
|
|
cxt->receipt["ackcode"] = err::kappe_cmd_not_support; |
|
|
cxt->receipt["ackcode"] = err::kappe_cmd_not_support; |
|
|
cxt->receipt["message"] = fmt::format("[{}]", ecode2str(cxt->receipt["ackcode"])); |
|
|
|
|
|
|
|
|
cxt->receipt["message"] = fmt::format("{}", ecode2str(cxt->receipt["ackcode"])); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |