Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
takeout_sbk
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
yunpeng.song
takeout_sbk
Commits
38ff4990
Commit
38ff4990
authored
Jun 25, 2018
by
wuyang.zou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug: 下单接口数据中 商品id 由 id -> code
“
parent
6b73321d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fmTakeaway/Control/flowControl.cpp
+3
-3
No files found.
fmTakeaway/Control/flowControl.cpp
View file @
38ff4990
...
...
@@ -1373,7 +1373,7 @@ bool FlowControl::_GetQueryReplyJson(QJsonObject &data, QString &error, const QS
QJsonObject
tObj
;
dishesObject
*
dish
=
orderObject
->
proList
.
at
(
i
);
tObj
.
insert
(
"consume_num"
,
orderObject
->
proList
.
at
(
i
)
->
qty
);
tObj
.
insert
(
"pid"
,
orderObject
->
proList
.
at
(
i
)
->
id
);
tObj
.
insert
(
"pid"
,
orderObject
->
proList
.
at
(
i
)
->
code
);
tObj
.
insert
(
"original_price"
,
orderObject
->
proList
.
at
(
i
)
->
price
);
if
(
!
dish
->
sub_products
.
isEmpty
())
{
...
...
@@ -1382,10 +1382,10 @@ bool FlowControl::_GetQueryReplyJson(QJsonObject &data, QString &error, const QS
{
QJsonObject
sObj
;
dishesObject
*
subDish
=
dish
->
sub_products
.
at
(
j
);
if
(
!
subDish
->
id
.
isEmpty
())
if
(
!
subDish
->
code
.
isEmpty
())
{
sObj
.
insert
(
"consume_num"
,
subDish
->
qty
);
sObj
.
insert
(
"pid"
,
subDish
->
id
);
sObj
.
insert
(
"pid"
,
subDish
->
code
);
sObj
.
insert
(
"original_price"
,
subDish
->
price
);
subProduct
.
insert
(
0
,
sObj
);
}
...
...
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