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
6683ede2
Commit
6683ede2
authored
Apr 10, 2018
by
guanghui.cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分proType,服务端传输过来“00”需要转换为“CP”
parent
b418d961
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
src/JsonModule.cpp
+3
-0
src/main.cpp
+1
-1
No files found.
src/JsonModule.cpp
View file @
6683ede2
...
...
@@ -383,6 +383,9 @@ bool JsonModule::getPushOrders(IN const char* json,OUT orderObj &order)
detail
.
bonus
=
GetJsonIntSafe
(
pointDetails_obj
,
"point"
);
detail
.
sku
=
GetJsonStringSafe
(
pointDetails_obj
,
"sku"
);
detail
.
proType
=
GetJsonStringSafe
(
pointDetails_obj
,
"type"
);
if
(
"00"
==
detail
.
proType
){
detail
.
proType
=
"CP"
;
}
order
.
vecBonus
.
push_back
(
detail
);
}
...
...
src/main.cpp
View file @
6683ede2
...
...
@@ -246,7 +246,7 @@ int main()
/// 注册回调函数
el
::
Helpers
::
installPreRollOutCallback
(
logRolloutHandler
);
LOG
(
INFO
)
<<
"---------software start---------
.
"
;
LOG
(
INFO
)
<<
"---------software start---------"
;
//sqlite初始化
// if(!sqlite.initSQLite()){
...
...
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