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
439c74e3
Commit
439c74e3
authored
Apr 04, 2019
by
guanghui.cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加券id字段
parent
f652ea28
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletions
+6
-1
base/CommonStruct.h
+1
-0
src/JsonModule.cpp
+4
-0
src/main.cpp
+1
-1
No files found.
base/CommonStruct.h
View file @
439c74e3
...
...
@@ -134,6 +134,7 @@ struct promotions
std
::
string
desc
;
//优惠明细
std
::
string
name
;
//名称
std
::
string
sku
;
//商品编号
std
::
string
couponId
;
//券id
int
originalPrice
=
0
;
//原始价格
int
discount
=
0
;
//折扣
int
promotionPrice
=
0
;
//优惠价格
...
...
src/JsonModule.cpp
View file @
439c74e3
...
...
@@ -384,6 +384,7 @@ bool JsonModule::getPushOrders(IN const char* json,OUT orderObj &order)
detail
.
proType
=
GetJsonStringSafe
(
promtionDetails_obj
,
"type"
);
detail
.
desc
=
GetJsonStringSafe
(
promtionDetails_obj
,
"desc"
);
detail
.
sku
=
GetJsonStringSafe
(
promtionDetails_obj
,
"sku"
);
detail
.
couponId
=
GetJsonStringSafe
(
promtionDetails_obj
,
"couponId"
);
detail
.
originalPrice
=
GetJsonIntSafe
(
promtionDetails_obj
,
"originalPrice"
);
detail
.
promotionPrice
=
GetJsonIntSafe
(
promtionDetails_obj
,
"promotionPrice"
);
detail
.
discount
=
GetJsonIntSafe
(
promtionDetails_obj
,
"discount"
);
...
...
@@ -1367,6 +1368,9 @@ std::string JsonModule::_convertToNewOrderJson(orderObj &obj)
writer
.
Key
(
"giftQty"
);
writer
.
Int
(
obj
.
vecPromotions
[
i
].
giftQty
);
writer
.
Key
(
"couponId"
);
writer
.
String
(
obj
.
vecPromotions
[
i
].
couponId
.
c_str
());
writer
.
EndObject
();
}
writer
.
EndArray
();
...
...
src/main.cpp
View file @
439c74e3
...
...
@@ -19,7 +19,7 @@
INITIALIZE_EASYLOGGINGPP
#define VERSION "1.1.0 beta
1
" //版本号
#define VERSION "1.1.0 beta
2
" //版本号
std
::
string
g_init_data
;
std
::
string
g_init_data_ods_back
;
...
...
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