瀏覽代碼

#IQRV #comment [BugFix][InteractiveControl]提礼鹏修复一个合并提交导致的缺陷,字符编码问题影响坐席

gifur 4 年之前
父節點
當前提交
01a572d2fb
共有 1 個文件被更改,包括 16 次插入2 次删除
  1. 16 2
      Module/mod_interactivecontrol/mod_interactivecontrol.cpp

+ 16 - 2
Module/mod_interactivecontrol/mod_interactivecontrol.cpp

@@ -888,7 +888,14 @@ public:
 		{
 			SpBuffer buf;
 			buf.OpenWrite(32 + strContent.GetLength()*2);
-			buf & id & strContent;
+#if defined(RVC_OS_WIN)
+			buf& id& strContent;
+#else
+            buf& id;
+            CSimpleString16Bit convertedData = CSimpleStringW216Bit(strContent);
+            buf& convertedData;
+            Dbg("%s After convert: %s", __FUNCTION__, CSimpleString16Bit2A(convertedData).GetData());
+#endif //RVC_OS_WIN
 			ChannelService_Send_Info Info;
 			Info.sub_type = ACM_IM_FRONTSYNC;
 			Info.type = ACM_TYPE_IM;
@@ -910,7 +917,14 @@ public:
 		{
 			SpBuffer buf;
 			buf.OpenWrite(32 + strContent.GetLength() * 2);
-			buf & strContent;
+#if defined(RVC_OS_WIN)
+			buf& strContent;
+#else
+            CSimpleString16Bit convertedData = CSimpleStringW216Bit(strContent);
+            buf& convertedData;
+            Dbg("%s After convert: %s", __FUNCTION__, CSimpleString16Bit2A(convertedData).GetData());
+#endif //RVC_OS_WIN
+			
 			ChannelService_Send_Info Info;
 			Info.sub_type = 0;
 			Info.type = ACM_TYPE_H5_SYNC;