Explorar el Código

Z991239-3095 #comment other 解决坐席端发送的文件在信创机器显示乱码问题

陈礼鹏80274480 hace 3 años
padre
commit
5dcf7cc612
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      Module/mod_interactivecontrol/mod_interactivecontrol.cpp

+ 9 - 0
Module/mod_interactivecontrol/mod_interactivecontrol.cpp

@@ -987,7 +987,16 @@ public:
 				SpBuffer buf;
 				buf.OpenRead(data, size);
 				RecvAgentText evt;
+#ifdef RVC_OS_WIN
 				buf & evt.content;
+#else
+				CSimpleString16Bit content16;
+				buf & content16;
+				CSimpleStringA reqContextA = CSimpleString16Bit2A(content16);
+				CSimpleStringW reqContextW = CSimpleStringA2W(reqContextA);
+				Dbg("RecvAgentText is %s.", reqContextA.GetData());
+				evt.content = reqContextW;
+#endif // RVC_OS_WIN
 				SpSendBroadcast(GetFunction(), SP_MSG_OF(RecvAgentText), SP_MSG_SIG_OF(RecvAgentText), evt);
 				SendAnswer(ACM_IM_ANS | sub_type, Error_Succeed);
 			}