Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FMVip_Today
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
zhenfei.zhang
FMVip_Today
Commits
06b8ad23
Commit
06b8ad23
authored
Jul 14, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 使用手机号认证后返回空的coupons字段。
parent
36de3339
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
FMVip/fmvipdispatcher.cpp
+3
-3
No files found.
FMVip/fmvipdispatcher.cpp
View file @
06b8ad23
...
@@ -223,13 +223,13 @@ void FMVipDispatcher::onServerResponsed(const QJsonObject &rspObj)
...
@@ -223,13 +223,13 @@ void FMVipDispatcher::onServerResponsed(const QJsonObject &rspObj)
}
}
// 成功,且是最后一步,则弹出认证信息
// 成功,且是最后一步,则弹出认证信息
else
if
(
isLastOne
)
{
else
if
(
isLastOne
)
{
// 返回选中的商品券
QJsonArray
coupons
;
if
(
canPay
==
1
)
{
if
(
canPay
==
1
)
{
// 展示商品券界面
// 展示商品券界面
FMVipCouponList
couponListWnd
;
FMVipCouponList
couponListWnd
;
couponListWnd
.
exec
();
couponListWnd
.
exec
();
// 返回选中的商品券
QJsonArray
coupons
;
QMap
<
QString
,
Coupon
>
selectCouponMap
=
SESSIONDATA_COUPONMAP
(
"usedCoupons"
);
QMap
<
QString
,
Coupon
>
selectCouponMap
=
SESSIONDATA_COUPONMAP
(
"usedCoupons"
);
foreach
(
Coupon
coupon
,
selectCouponMap
)
{
foreach
(
Coupon
coupon
,
selectCouponMap
)
{
QJsonObject
couponObj
;
QJsonObject
couponObj
;
...
@@ -237,13 +237,13 @@ void FMVipDispatcher::onServerResponsed(const QJsonObject &rspObj)
...
@@ -237,13 +237,13 @@ void FMVipDispatcher::onServerResponsed(const QJsonObject &rspObj)
couponObj
[
"pid"
]
=
coupon
.
pid
;
couponObj
[
"pid"
]
=
coupon
.
pid
;
coupons
.
append
(
couponObj
);
coupons
.
append
(
couponObj
);
}
}
posRspObj
[
"coupons"
]
=
coupons
;
}
else
{
}
else
{
QString
account
=
SESSIONDATA_STRING
(
"fm_open_id"
);
QString
account
=
SESSIONDATA_STRING
(
"fm_open_id"
);
QString
name
=
SESSIONDATA_STRING
(
"name"
);
QString
name
=
SESSIONDATA_STRING
(
"name"
);
QString
birthday
=
SESSIONDATA_STRING
(
"birthday"
);
QString
birthday
=
SESSIONDATA_STRING
(
"birthday"
);
FMMsgWnd
::
LoginSuccess
(
account
,
name
,
birthday
);
FMMsgWnd
::
LoginSuccess
(
account
,
name
,
birthday
);
}
}
posRspObj
[
"coupons"
]
=
coupons
;
}
}
// 成功,是支付认证,但不能支付
// 成功,是支付认证,但不能支付
else
if
(
isPayLogin
)
{
else
if
(
isPayLogin
)
{
...
...
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