...
|
...
|
@@ -154,8 +154,9 @@ class BuyNowController { |
|
|
* @param {*} next
|
|
|
*/
|
|
|
orderSub(req, res, next) {
|
|
|
let uid = req.user.uid;
|
|
|
let params = {
|
|
|
uid: req.user.uid,
|
|
|
uid: uid,
|
|
|
product_sku: req.body.product_sku,
|
|
|
sku_type: req.body.sku_type,
|
|
|
buy_number: req.body.buy_number,
|
...
|
...
|
@@ -170,7 +171,8 @@ class BuyNowController { |
|
|
product_sku_list: req.body.product_sku_list,
|
|
|
is_print_price: req.body.is_print_price,
|
|
|
remark: req.body.remark,
|
|
|
activity_id: req.body.activity_id
|
|
|
activity_id: req.body.activity_id,
|
|
|
ip: req.yoho.clientIp
|
|
|
};
|
|
|
|
|
|
// 是否开发票
|
...
|
...
|
@@ -186,6 +188,13 @@ class BuyNowController { |
|
|
}
|
|
|
}
|
|
|
|
|
|
if (req.cookies.mkt_code || req.cookies._QYH_UNION) {
|
|
|
let unionInfo = paymentProcess.unionInfoHandle(req.cookies, uid);
|
|
|
|
|
|
params.qhy_union = _.get(unionInfo, 'unionKey', false);
|
|
|
params.userAgent = _.get(unionInfo, 'userAgent', '');
|
|
|
}
|
|
|
|
|
|
co(function * () {
|
|
|
let result = yield req.ctx(BuyNowModel).submit(params);
|
|
|
|
...
|
...
|
|