...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2017-06-21 10:15:38
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2017-06-23 14:53:12
|
|
|
* @Last Modified time: 2017-06-23 16:23:50
|
|
|
*/
|
|
|
const _ = require('lodash');
|
|
|
const co = require('bluebird').coroutine;
|
...
|
...
|
@@ -37,7 +37,7 @@ class BuyNowController { |
|
|
} catch (e) {
|
|
|
logger.info(`orderEnsure: get buynow-order-info from cookie error:${JSON.stringify(e)}`);
|
|
|
orderInfo = {};
|
|
|
res.clearCookie('buynow-order-info', actCkOpthn);
|
|
|
res.clearCookie('buynow_info', actCkOpthn);
|
|
|
}
|
|
|
|
|
|
let product_sku = req.query.product_sku;
|
...
|
...
|
@@ -142,6 +142,9 @@ class BuyNowController { |
|
|
co(function * () {
|
|
|
let result = yield req.ctx(BuyNowModel).submit(params);
|
|
|
|
|
|
// 提交成功清除Cookie
|
|
|
res.clearCookie('buynow_info', actCkOpthn);
|
|
|
|
|
|
return res.json(result);
|
|
|
})().catch(next);
|
|
|
}
|
...
|
...
|
|