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
5f417e24
Commit
5f417e24
authored
Jul 21, 2020
by
wuyang.zou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New Feature: 新增2字段:1、纳客宝基本积分;2、纳客宝额外积分
Version: 1.2.0 RC ‘
parent
51f386b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
base/CommonStruct.h
+3
-0
src/JsonModule.cpp
+7
-1
src/main.cpp
+1
-1
No files found.
base/CommonStruct.h
View file @
5f417e24
...
...
@@ -223,6 +223,9 @@ struct orderObj
std
::
string
order_drift
;
//订单漂移
int
bonus_basic
=
0
;
//基本积分
int
bonus_extra
=
0
;
//额外积分
int
bonus_basic_nkb
=
0
;
//纳客宝-基本积分
int
bonus_extra_nkb
=
0
;
//纳客宝-额外积分
int
bonus_total
=
0
;
// 获得总积分
int
totalCouponDiscount
=
0
;
//使用优惠券发生的折扣
int
totalExcessiveCharge
=
0
;
//使用优惠券发生的溢收
...
...
src/JsonModule.cpp
View file @
5f417e24
...
...
@@ -411,6 +411,8 @@ bool JsonModule::getPushOrders(IN const char* json,OUT orderObj &order)
order
.
bonus_total
=
GetJsonIntSafe
(
points_obj
,
"totalPoint"
);
order
.
bonus_extra
=
GetJsonIntSafe
(
points_obj
,
"extraPoint"
);
order
.
bonus_basic
=
GetJsonIntSafe
(
points_obj
,
"basicPoint"
);
order
.
bonus_extra_nkb
=
GetJsonIntSafe
(
points_obj
,
"nkbExtraPoint"
);
order
.
bonus_basic_nkb
=
GetJsonIntSafe
(
points_obj
,
"nkbBasicPoint"
);
order
.
zhxPoint
=
GetJsonIntSafe
(
points_obj
,
"zhxPoint"
);
//积分信息详情
if
(
points_obj
.
HasMember
(
"pointDetails"
))
...
...
@@ -1287,10 +1289,14 @@ std::string JsonModule::_convertToNewOrderJson(orderObj &obj)
//----------------消费积分----------------
writer
.
Key
(
"bonusBasic"
);
writer
.
Int
(
obj
.
bonus_basic
);
writer
.
Key
(
"bonusExtra"
);
writer
.
Int
(
obj
.
bonus_extra
);
writer
.
Key
(
"nkbBonusBasic"
);
writer
.
Int
(
obj
.
bonus_basic_nkb
);
writer
.
Key
(
"nkbBonusExtra"
);
writer
.
Int
(
obj
.
bonus_extra_nkb
);
writer
.
Key
(
"bonusTotal"
);
writer
.
Int
(
obj
.
bonus_total
);
...
...
src/main.cpp
View file @
5f417e24
...
...
@@ -19,7 +19,7 @@
INITIALIZE_EASYLOGGINGPP
#define VERSION "1.
1.0 beta2
" //版本号
#define VERSION "1.
2.0 RC
" //版本号
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