Browse Source

V0.7.3
1、修复了LHHTTPAPI拷贝数据的问题

Apple 2 tháng trước cách đây
mục cha
commit
97e29baf62
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      Libraries/LHHTTPAPI/src/lhhttpapi.cpp

+ 2 - 1
Libraries/LHHTTPAPI/src/lhhttpapi.cpp

@@ -280,7 +280,8 @@ int lhhttpapi::DBDoInterface( int nOperatorType, const QString &strParamXml, QSt
         QString serid = m_Serid;
         QString appType = m_appType;
         //char buffer[LHHTTPAPI_BUFFER_SIZE] = {0};
-        char *buffer = new char[LHHTTPAPI_BUFFER_SIZE];
+        char *buffer = new char[LHHTTPAPI_BUFFER_SIZE]{0};
+        // memset(buffer, 0, LHHTTPAPI_BUFFER_SIZE);
         int ret = fnDBDoInterface(serid.toUtf8().data(), appType.toUtf8().data(), strToken.toUtf8().data(), nOperatorType, strParamXml.toUtf8().data(), buffer, LHHTTPAPI_BUFFER_SIZE,bismulti,phttpip);
         strRetXml = QString::fromUtf8(buffer);
         delete [] buffer;