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
e6d12fb6
Commit
e6d12fb6
authored
Apr 25, 2018
by
guanghui.cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品在pos中不存在时,返回103
parent
571786e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
src/JsonModule.cpp
+9
-0
src/main.cpp
+1
-1
No files found.
src/JsonModule.cpp
View file @
e6d12fb6
...
...
@@ -1701,6 +1701,15 @@ bool JsonModule::_getOrderResponseJson(IN const std::string& posResponse, IN con
writer
.
Key
(
"pk_id"
);
writer
.
Int
(
pk_id
);
//该状态表示商品在pos中不存在,需要返回字段给中台,由于双方命名规则不一致,所以这里拼上中台需要字段
if
(
103
==
status_code
)
{
writer
.
Key
(
"orderId"
);
writer
.
String
(
order_id
.
c_str
());
writer
.
Key
(
"statusCode"
);
writer
.
String
(
std
::
to_string
(
status_code
).
c_str
());
}
writer
.
EndObject
();
result
=
buffer
.
GetString
();
...
...
src/main.cpp
View file @
e6d12fb6
...
...
@@ -18,7 +18,7 @@
INITIALIZE_EASYLOGGINGPP
#define VERSION "1.0.2" //版本号
#define VERSION "1.0.2
Beta1
" //版本号
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