Showing
1 changed file
with
4 additions
and
4 deletions
@@ -82,7 +82,8 @@ exports.ensure = (req, res, next) => { | @@ -82,7 +82,8 @@ exports.ensure = (req, res, next) => { | ||
82 | } | 82 | } |
83 | 83 | ||
84 | // 获取结算 数据 | 84 | // 获取结算 数据 |
85 | - let paymentInfo = yield req.ctx(seckillModel).payment(paymentOption, orderInfo, orderComputerData.data); | 85 | + let paymentInfo = |
86 | + yield req.ctx(seckillModel).payment(paymentOption, orderInfo, _.get(orderComputerData, 'data')); | ||
86 | 87 | ||
87 | if (paymentInfo.code !== 200) { | 88 | if (paymentInfo.code !== 200) { |
88 | view = { | 89 | view = { |
@@ -156,7 +157,6 @@ exports.compute = (req, res, next) => { | @@ -156,7 +157,6 @@ exports.compute = (req, res, next) => { | ||
156 | .catch(next); | 157 | .catch(next); |
157 | }; | 158 | }; |
158 | 159 | ||
159 | - | ||
160 | exports.submit = (req, res, next) => { | 160 | exports.submit = (req, res, next) => { |
161 | const uid = req.user.uid, | 161 | const uid = req.user.uid, |
162 | sku = req.body.sku, | 162 | sku = req.body.sku, |
@@ -238,13 +238,13 @@ exports.submit = (req, res, next) => { | @@ -238,13 +238,13 @@ exports.submit = (req, res, next) => { | ||
238 | // 使用礼品卡,发送验证码 | 238 | // 使用礼品卡,发送验证码 |
239 | if (options.gift_card_code) { | 239 | if (options.gift_card_code) { |
240 | if (!verifyCode) { | 240 | if (!verifyCode) { |
241 | - yield orderModel.giftCardSendSms(uid); | 241 | + yield req.ctx(orderModel).giftCardSendSms(uid); |
242 | 242 | ||
243 | return res.json({ | 243 | return res.json({ |
244 | code: 411 | 244 | code: 411 |
245 | }); | 245 | }); |
246 | } else { | 246 | } else { |
247 | - let verifyResult = yield orderModel.validRegCode({ | 247 | + let verifyResult = yield req.ctx(orderModel).validRegCode({ |
248 | uid, verifyCode, udid | 248 | uid, verifyCode, udid |
249 | }); | 249 | }); |
250 | 250 |
-
Please register or login to post a comment