|
|
@@ -1047,7 +1047,23 @@ void CGUIConsoleSession::Handle_CloseCommonPage(SpReqAnsContext<GUIConsoleServic
|
|
|
|
|
|
void CGUIConsoleSession::Handle_ReservedCall(SpReqAnsContext<GUIConsoleService_ReservedCall_Req, GUIConsoleService_ReservedCall_Ans>::Pointer ctx)
|
|
|
{
|
|
|
+ LOG_FUNCTION();
|
|
|
+ DbgToBeidou(ctx->link, __FUNCTION__)();
|
|
|
+
|
|
|
+ if(ctx->Req.reqType == "multi_answer")
|
|
|
+ {
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("test answer multi times");
|
|
|
+ ctx->Answer(ErrorCodeEnum::Error_Succeed);
|
|
|
+ ctx->Answer(ErrorCodeEnum::Error_Succeed);
|
|
|
+ }
|
|
|
+ else if(ctx->Req.reqType == "test_timeout")
|
|
|
+ {
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("test timeout");
|
|
|
+ std::this_thread::sleep_for(std::chrono::seconds(10));
|
|
|
+ ctx->Answer(ErrorCodeEnum::Error_Succeed);
|
|
|
+ }
|
|
|
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|