Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
familyMart_takeaway
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guanghui.cui
familyMart_takeaway
Commits
ccab1d1d
Commit
ccab1d1d
authored
Jan 29, 2018
by
guanghui.cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tab替换为4个空格
parent
a8033ca2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
src/JsonModule.cpp
+1
-1
src/SQLiteModule.cpp
+1
-4
src/SocketModule.cpp
+0
-0
No files found.
src/JsonModule.cpp
View file @
ccab1d1d
...
...
@@ -38,7 +38,7 @@ void parseJson(const char* json)
// 注意GetParseError()返回的是一个rapidjson::ParseErrorCode类型的枚举值
// 使用函数rapidjson::GetParseError_En()得到错误码的字符串说明,这里的En为English简写
// 函数GetErrorOffset()返回出错发生的位置
//LOG_ERROR("TakeawayOrder JSON parse error: (%d:%d)", document.GetParseError(), document.GetErrorOffset())
LOG
(
ERROR
)
<<
"JSON parse error:"
<<
document
.
GetParseError
()
<<
":"
<<
document
.
GetErrorOffset
();
}
else
{
...
...
src/SQLiteModule.cpp
View file @
ccab1d1d
...
...
@@ -99,10 +99,7 @@ bool SQLite::isTableExist(sqlite3 *sqDb, std::string strTableName)
int
SQLite
::
isRecordExist
(
std
::
string
strTable
,
std
::
string
strKey
)
{
char
*
lpSql
=
new
char
[
BUFFER_SIZE
];
sprintf_s
(
lpSql
,
BUFFER_SIZE
,
"select * from %s where trans_id = '%s'"
,
strTable
.
c_str
(),
strKey
.
c_str
());
sprintf_s
(
lpSql
,
BUFFER_SIZE
,
"select * from %s where trans_id = '%s'"
,
strTable
.
c_str
(),
strKey
.
c_str
());
char
**
pResult
;
int
nRow
=
0
;
int
nCol
=
0
;
...
...
src/SocketModule.cpp
View file @
ccab1d1d
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment