Authored by 郭成尧

read-from-undefined-err

... ... @@ -168,7 +168,7 @@ class BuyNowController {
use_yoho_coin: req.body.use_yoho_coin
});
result.data.use_yoho_coin = paymentProcess.transPrice(result.data.use_yoho_coin);
result.data.use_yoho_coin = paymentProcess.transPrice(_.get(result, 'data.use_yoho_coin'));
result.data.yohoCoinCompute = paymentProcess.yohoCoinCompute(result.data);
return res.json(result.data);
})().catch(next);
... ...