...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2017-06-21 10:15:38
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2017-06-23 11:27:00
|
|
|
* @Last Modified time: 2017-06-23 11:48:11
|
|
|
*/
|
|
|
const _ = require('lodash');
|
|
|
const co = require('bluebird').coroutine;
|
...
|
...
|
@@ -13,6 +13,7 @@ const userModel = require('../models/user'); |
|
|
const orderModel = require('../models/order');
|
|
|
const utils = '../../../utils';
|
|
|
const paymentProcess = require(`${utils}/payment-process`);
|
|
|
const crypto = global.yoho.crypto;
|
|
|
const logger = global.yoho.logger;
|
|
|
const helpers = global.yoho.helpers;
|
|
|
|
...
|
...
|
@@ -113,7 +114,7 @@ class BuyNowController { |
|
|
product_sku: req.body.product_sku,
|
|
|
sku_type: req.body.sku_type,
|
|
|
buy_number: req.body.buy_number,
|
|
|
address_id: req.body.address_id,
|
|
|
address_id: parseInt(crypto.decrypt('', req.body.address_id), 10),
|
|
|
delivery_time: req.body.delivery_time,
|
|
|
delivery_way: req.body.delivery_way,
|
|
|
use_yoho_coin: req.body.use_yoho_coin,
|
...
|
...
|
|