|
@@ -195,27 +195,27 @@ INT CDataImpl::QueryUnReportInfo(std::vector<STReport>& vtdata)
|
|
|
return nRow;
|
|
|
}
|
|
|
|
|
|
-INT CDataImpl::InsertReportInfo(STReport& data)
|
|
|
-{
|
|
|
- if(m_psqlite3 == NULL)
|
|
|
- return -1;
|
|
|
-
|
|
|
- std::string strInsert = "INSERT INTO report(url, content)VALUES ('";
|
|
|
- strInsert.append(data.url);
|
|
|
- strInsert.append("','");
|
|
|
- strInsert.append(data.content);
|
|
|
- strInsert.append("');");
|
|
|
-
|
|
|
- char* psqlite_error = NULL;
|
|
|
- int sqlite_error = sqlite3_exec(m_psqlite3, strInsert.c_str(), NULL, 0, &psqlite_error);
|
|
|
- if(SQLITE_OK != sqlite_error)
|
|
|
- {
|
|
|
- //Global::WriteTextLog(_T("InsertContactsType:%s"), psqlite_error);
|
|
|
- FREE_MSG;
|
|
|
- }
|
|
|
-
|
|
|
- return sqlite_error;
|
|
|
-}
|
|
|
+// INT CDataImpl::InsertReportInfo(STReport& data)
|
|
|
+// {
|
|
|
+// if(m_psqlite3 == NULL)
|
|
|
+// return -1;
|
|
|
+//
|
|
|
+// std::string strInsert = "INSERT INTO report(url, content)VALUES ('";
|
|
|
+// strInsert.append(data.url);
|
|
|
+// strInsert.append("','");
|
|
|
+// strInsert.append(data.content);
|
|
|
+// strInsert.append("');");
|
|
|
+//
|
|
|
+// char* psqlite_error = NULL;
|
|
|
+// int sqlite_error = sqlite3_exec(m_psqlite3, strInsert.c_str(), NULL, 0, &psqlite_error);
|
|
|
+// if(SQLITE_OK != sqlite_error)
|
|
|
+// {
|
|
|
+// //Global::WriteTextLog(_T("InsertContactsType:%s"), psqlite_error);
|
|
|
+// FREE_MSG;
|
|
|
+// }
|
|
|
+//
|
|
|
+// return sqlite_error;
|
|
|
+// }
|
|
|
|
|
|
INT CDataImpl::InsertReportInfo(std::string url, std::string content, bool report_status)
|
|
|
{
|
|
@@ -249,26 +249,26 @@ INT CDataImpl::InsertReportInfo(std::string url, std::string content, bool repor
|
|
|
return sqlite_error;
|
|
|
}
|
|
|
|
|
|
-INT CDataImpl::InsertReportInfo(std::string content)
|
|
|
-{
|
|
|
- if (m_psqlite3 == NULL)
|
|
|
- return -1;
|
|
|
-
|
|
|
- std::string strInsert = "INSERT INTO report(url, content)VALUES ('";
|
|
|
- strInsert.append("https://cn.ota.qhmoka.com/ota-services/report/reportToolsLog.do");
|
|
|
- strInsert.append("','");
|
|
|
- strInsert.append(content);
|
|
|
- strInsert.append("');");
|
|
|
- char* psqlite_error = NULL;
|
|
|
- int sqlite_error = sqlite3_exec(m_psqlite3, strInsert.c_str(), NULL, 0, &psqlite_error);
|
|
|
- if (SQLITE_OK != sqlite_error)
|
|
|
- {
|
|
|
- //Global::WriteTextLog(_T("InsertContactsType:%s"), psqlite_error);
|
|
|
- FREE_MSG;
|
|
|
- }
|
|
|
-
|
|
|
- return sqlite_error;
|
|
|
-}
|
|
|
+// INT CDataImpl::InsertReportInfo(std::string content)
|
|
|
+// {
|
|
|
+// if (m_psqlite3 == NULL)
|
|
|
+// return -1;
|
|
|
+//
|
|
|
+// std::string strInsert = "INSERT INTO report(url, content)VALUES ('";
|
|
|
+// strInsert.append("https://cn.ota.qhmoka.com/ota-services/report/reportToolsLog.do");
|
|
|
+// strInsert.append("','");
|
|
|
+// strInsert.append(content);
|
|
|
+// strInsert.append("');");
|
|
|
+// char* psqlite_error = NULL;
|
|
|
+// int sqlite_error = sqlite3_exec(m_psqlite3, strInsert.c_str(), NULL, 0, &psqlite_error);
|
|
|
+// if (SQLITE_OK != sqlite_error)
|
|
|
+// {
|
|
|
+// //Global::WriteTextLog(_T("InsertContactsType:%s"), psqlite_error);
|
|
|
+// FREE_MSG;
|
|
|
+// }
|
|
|
+//
|
|
|
+// return sqlite_error;
|
|
|
+// }
|
|
|
|
|
|
INT CDataImpl::InsertReportInfo(std::string report_type, std::map<std::string, std::string> report_data)
|
|
|
{
|