Commit 06b8ad23 by NitefullWind

1. 使用手机号认证后返回空的coupons字段。

parent 36de3339
......@@ -223,13 +223,13 @@ void FMVipDispatcher::onServerResponsed(const QJsonObject &rspObj)
}
// 成功,且是最后一步,则弹出认证信息
else if(isLastOne) {
// 返回选中的商品券
QJsonArray coupons;
if(canPay==1) {
// 展示商品券界面
FMVipCouponList couponListWnd;
couponListWnd.exec();
// 返回选中的商品券
QJsonArray coupons;
QMap<QString, Coupon> selectCouponMap = SESSIONDATA_COUPONMAP("usedCoupons");
foreach (Coupon coupon, selectCouponMap) {
QJsonObject couponObj;
......@@ -237,13 +237,13 @@ void FMVipDispatcher::onServerResponsed(const QJsonObject &rspObj)
couponObj["pid"] = coupon.pid;
coupons.append(couponObj);
}
posRspObj["coupons"] = coupons;
} else {
QString account = SESSIONDATA_STRING("fm_open_id");
QString name = SESSIONDATA_STRING("name");
QString birthday = SESSIONDATA_STRING("birthday");
FMMsgWnd::LoginSuccess(account, name, birthday);
}
posRspObj["coupons"] = coupons;
}
// 成功,是支付认证,但不能支付
else if(isPayLogin) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment