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
1753cf58
Commit
1753cf58
authored
Mar 29, 2018
by
guanghui.cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单推送报文字段修改
parent
fa21788b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
31 deletions
+76
-31
base/CommonStruct.h
+76
-31
src/JsonModule.cpp
+0
-0
No files found.
base/CommonStruct.h
View file @
1753cf58
...
@@ -49,38 +49,38 @@ struct payment
...
@@ -49,38 +49,38 @@ struct payment
std
::
vector
<
paymentDetail
>
vecDetail
;
//付款明细数组
std
::
vector
<
paymentDetail
>
vecDetail
;
//付款明细数组
};
};
//订单积分详情
//
//
订单积分详情
struct
bonusDetail
//
struct bonusDetail
{
//
{
int
type
=
0
;
//积分类型
//
int type=0; //积分类型
std
::
string
desc
;
//积分奖励描述
//
std::string desc; //积分奖励描述
int
point
=
0
;
//积分奖励数值
//
int point=0; //积分奖励数值
std
::
string
sku
;
//积分商品
//
std::string sku; //积分商品
};
//
};
//订单积分
//
//
订单积分
struct
bonus
//
struct bonus
{
//
{
std
::
string
summary
;
//积分奖励总和
//
std::string summary; //积分奖励总和
std
::
vector
<
bonusDetail
>
vecDetail
;
//付款明细数组
//
std::vector<bonusDetail> vecDetail; //付款明细数组
};
//
};
//促销明细
//
//
促销明细
struct
promotionsDetail
//
struct promotionsDetail
{
//
{
std
::
string
pro_id
;
//促销编码
//
std::string pro_id; //促销编码
int
type
=
0
;
//促销类型
//
int type=0; //促销类型
std
::
string
desc
;
//促销描述
//
std::string desc; //促销描述
int
offer
=
0
;
//促销金额
//
int offer=0; //促销金额
std
::
string
sku
;
//促销商品
//
std::string sku; //促销商品
};
//
};
//促销
//
//
促销
struct
promotions
//
struct promotions
{
//
{
std
::
string
summary
;
//促销金额总和
//
std::string summary; //促销金额总和
std
::
vector
<
promotionsDetail
>
vecDetail
;
//付款明细数组
//
std::vector<promotionsDetail> vecDetail; //付款明细数组
};
//
};
//响应结果
//响应结果
struct
responseRlt
struct
responseRlt
...
@@ -119,6 +119,47 @@ struct customer
...
@@ -119,6 +119,47 @@ struct customer
std
::
string
account_level
;
//顾客账号等级
std
::
string
account_level
;
//顾客账号等级
};
};
//促销
struct
promotions
{
std
::
string
pcode
;
//优惠码
std
::
string
proType
;
//类型: 00快速积点 ,20售价促销,30进价+售价促销,40组合促销,50整单促销,60厂区促销,70会员卡充值促销, 80电子点标
std
::
string
type
;
//优惠子类型
std
::
string
desc
;
//优惠明细
std
::
string
name
;
//名称
std
::
string
sku
;
//商品编号
int
originalPrice
=
0
;
//原始价格
int
discount
=
0
;
//折扣
int
prmotionPrice
=
0
;
//优惠价格
std
::
string
giftSku
;
//赠品的编码
int
giftQty
=
0
;
//赠品的数量
};
//积分
struct
bonus
{
std
::
string
pcode
;
//优惠码
std
::
string
proType
;
//类型: 00快速积点 ,20售价促销,30进价+售价促销,40组合促销,50整单促销,60厂区促销,70会员卡充值促销, 80电子点标
std
::
string
type
;
//优惠子类型
std
::
string
desc
;
//优惠明细
std
::
string
name
;
//名称
std
::
string
sku
;
//商品编号
int
bonus
=
0
;
//获得积分
};
//电子点标
struct
ecoupon
{
std
::
string
pcode
;
//优惠码
std
::
string
proType
;
//类型: 00快速积点 ,20售价促销,30进价+售价促销,40组合促销,50整单促销,60厂区促销,70会员卡充值促销, 80电子点标
std
::
string
type
;
//优惠子类型
std
::
string
desc
;
//优惠明细
std
::
string
name
;
//名称
std
::
string
sku
;
//商品编号
std
::
string
ecouponNumber
;
//电子点标号码
int
ecouponQty
=
0
;
//电子点标数量
};
//订单结构体
//订单结构体
struct
orderObj
struct
orderObj
{
{
...
@@ -135,6 +176,9 @@ struct orderObj
...
@@ -135,6 +176,9 @@ struct orderObj
int
total_price
=
0
;
//订单总价
int
total_price
=
0
;
//订单总价
int
delivery_price
=
0
;
//配送费
int
delivery_price
=
0
;
//配送费
int
reduced_price
=
0
;
//折扣总金额
int
reduced_price
=
0
;
//折扣总金额
int
wmDiscount
=
0
;
//外卖优惠金额
int
wmPtSharedDiscount
=
0
;
//外卖平台承担的优惠金额
int
wmSjSharedDiscount
=
0
;
//外卖商家承担的优惠金额
std
::
string
pickup_code
;
//自取订单取餐码
std
::
string
pickup_code
;
//自取订单取餐码
std
::
string
pickup_point
;
//自取订单取餐处
std
::
string
pickup_point
;
//自取订单取餐处
std
::
string
invoice_pickup_code
;
//订单发票提出码
std
::
string
invoice_pickup_code
;
//订单发票提出码
...
@@ -144,8 +188,9 @@ struct orderObj
...
@@ -144,8 +188,9 @@ struct orderObj
customer
customerInfo
;
//顾客信息
customer
customerInfo
;
//顾客信息
std
::
vector
<
productAttr
>
vecProducts
;
//商品列表
std
::
vector
<
productAttr
>
vecProducts
;
//商品列表
payment
payInfo
;
//付款明细
payment
payInfo
;
//付款明细
bonus
bonusInfo
;
//消费积分
std
::
vector
<
bonus
>
vecBonus
;
//消费积分
promotions
promotionInfo
;
//促销列表
std
::
vector
<
promotions
>
vecPromotions
;
//促销列表
std
::
vector
<
ecoupon
>
vecEcoupon
;
//电子点标
};
};
//订单状态
//订单状态
...
...
src/JsonModule.cpp
View file @
1753cf58
This diff is collapsed.
Click to expand it.
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