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
b332c3a0
Commit
b332c3a0
authored
Aug 08, 2018
by
wuyang.zou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug:解决配送费 null 录入pos失败
parent
6ef9484a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
fmTakeout/Control/flowControl.cpp
+3
-2
fmTakeout/preDefine.h
+2
-2
No files found.
fmTakeout/Control/flowControl.cpp
View file @
b332c3a0
...
@@ -462,7 +462,7 @@ bool FlowControl::_Login()
...
@@ -462,7 +462,7 @@ bool FlowControl::_Login()
/*if(1){
/*if(1){
QJsonObject sendJsontemp;
QJsonObject sendJsontemp;
sendJsontemp.insert(JSON_ORDERID, "123456789");
sendJsontemp.insert(JSON_ORDERID, "123456789");
sendJsontemp.insert("canceledCause", -1);
sendJsontemp.insert("canceledCause", -1
);
sendJsontemp.insert(JSON_POSIPADDRESS,QString("http://10.222.221.163:8080"));
sendJsontemp.insert(JSON_POSIPADDRESS,QString("http://10.222.221.163:8080"));
QLOG_INFO() << QString("[<<<<---_Login Test:--->>>>][requestData:%1]")<<sendJsontemp;
QLOG_INFO() << QString("[<<<<---_Login Test:--->>>>][requestData:%1]")<<sendJsontemp;
if(ConfigManger::GetInstance().GetOrderSslConfig()) {
if(ConfigManger::GetInstance().GetOrderSslConfig()) {
...
@@ -1804,7 +1804,8 @@ bool FlowControl::_ResponseSimReqFristOrderData(QJsonObject &data, QString &erro
...
@@ -1804,7 +1804,8 @@ bool FlowControl::_ResponseSimReqFristOrderData(QJsonObject &data, QString &erro
cObj
.
insert
(
"sbkAppPayValue"
,
tempSbkAppPayValue
);
cObj
.
insert
(
"sbkAppPayValue"
,
tempSbkAppPayValue
);
cObj
.
insert
(
"orderTransFlowNo"
,
(
orderObject
->
thirdPartyBatch
).
length
()
?
orderObject
->
thirdPartyBatch
:
QString
(
"123456789"
)
);
//第三方交易流水号
cObj
.
insert
(
"orderTransFlowNo"
,
(
orderObject
->
thirdPartyBatch
).
length
()
?
orderObject
->
thirdPartyBatch
:
QString
(
"123456789"
)
);
//第三方交易流水号
cObj
.
insert
(
"packFree"
,
orderObject
->
packageFee
);
cObj
.
insert
(
"packFree"
,
orderObject
->
packageFee
);
cObj
.
insert
(
"deliveryFree"
,
orderObject
->
deliveryPrice
);
//防止出现 deliveryPrice: NUll
cObj
.
insert
(
"deliveryFree"
,
(
orderObject
->
deliveryPrice
>
0
&&
orderObject
->
deliveryPrice
<
10000
)
?
orderObject
->
deliveryPrice
:
0
);
cObj
.
insert
(
"waybillId"
,
(
orderObject
->
waybillId
).
length
()
?
orderObject
->
waybillId
:
QString
(
"123456"
)
);
cObj
.
insert
(
"waybillId"
,
(
orderObject
->
waybillId
).
length
()
?
orderObject
->
waybillId
:
QString
(
"123456"
)
);
cObj
.
insert
(
"pos_sale_id"
,
orderObject
->
posCheckNo
);
cObj
.
insert
(
"pos_sale_id"
,
orderObject
->
posCheckNo
);
cObj
.
insert
(
"order_status"
,
orderObject
->
orderStatus
);
//订单的状态
cObj
.
insert
(
"order_status"
,
orderObject
->
orderStatus
);
//订单的状态
...
...
fmTakeout/preDefine.h
View file @
b332c3a0
...
@@ -165,9 +165,9 @@
...
@@ -165,9 +165,9 @@
// 服务器返回正确值
// 服务器返回正确值
#define JSON_STATUSCODE_OK 100
#define JSON_STATUSCODE_OK 100
// 默认拉取订单的间隔时间
// 默认拉取订单的间隔时间
#define VALUE_PULLSYNCTIME
1
0000
#define VALUE_PULLSYNCTIME
2
0000
// 默认网络超时时间
// 默认网络超时时间
#define VALUE_NETTIMEOUT
1
0000
#define VALUE_NETTIMEOUT
2
0000
// 默认重新尝试登录的时间
// 默认重新尝试登录的时间
#define VALUE_RELOGINTIME 20000
#define VALUE_RELOGINTIME 20000
// 默认心跳间隔的时间
// 默认心跳间隔的时间
...
...
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