Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FmTakeaway
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
shangshang.dai
FmTakeaway
Commits
b8068e02
Commit
b8068e02
authored
Apr 27, 2017
by
ss.dai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1:加入订单写失败重试机制、目前重试五次
parent
5778e1a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
fmTakeaway/Control/flowControl.cpp
+9
-5
takeaway.pro.user
+1
-1
No files found.
fmTakeaway/Control/flowControl.cpp
View file @
b8068e02
...
...
@@ -263,12 +263,16 @@ bool FlowControl::_PullOrder()
if
(
orderObject
->
status
==
6
||
orderObject
->
status
==
200
)
{
QString
error
;
if
(
FmPlugin
::
GetInstance
().
DoOrderEntry
(
orderObject
,
""
,
""
,
""
,
""
,
error
)
)
for
(
int
i
=
0
;
i
<
5
;
i
++
)
{
QLOG_INFO
()
<<
QString
(
"_PullOrder DoOrderEntry successful %1"
).
arg
(
orderObject
->
order_id
);
}
else
{
QLOG_INFO
()
<<
QString
(
"_PullOrder DoOrderEntry failed %1 %2"
).
arg
(
orderObject
->
order_id
,
error
);
if
(
FmPlugin
::
GetInstance
().
DoOrderEntry
(
orderObject
,
""
,
""
,
""
,
""
,
error
))
{
QLOG_INFO
()
<<
QString
(
"_PullOrder DoOrderEntry successful %1"
).
arg
(
orderObject
->
order_id
);
break
;
}
else
{
QLOG_INFO
()
<<
QString
(
"_PullOrder DoOrderEntry failed %1 %2"
).
arg
(
orderObject
->
order_id
,
error
);
}
}
}
else
{
...
...
takeaway.pro.user
View file @
b8068e02
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.0.0, 2017-04-2
6T10:13:09
. -->
<!-- Written by QtCreator 4.0.0, 2017-04-2
7T14:34:26
. -->
<qtcreator>
<data>
<variable>
EnvironmentId
</variable>
...
...
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