...
|
...
|
@@ -202,6 +202,7 @@ exports.orderCompute = (req, res, next) => { |
|
|
*/
|
|
|
exports.orderSub = (req, res, next) => {
|
|
|
let uid = req.user.uid;
|
|
|
let udid = req.sessionID || 'yoho';
|
|
|
let addressId = parseInt(crypto.decrypt('', req.body.addressId), 10);
|
|
|
let cartType = req.body.cartType || 'ordinary';
|
|
|
let deliveryTimeId = req.body.deliveryTimeId || 1;
|
...
|
...
|
@@ -268,7 +269,9 @@ exports.orderSub = (req, res, next) => { |
|
|
code: 411
|
|
|
});
|
|
|
} else {
|
|
|
let verifyResult = yield orderModel.validRegCode(uid, verifyCode);
|
|
|
let verifyResult = yield orderModel.validRegCode({
|
|
|
uid, verifyCode, udid
|
|
|
});
|
|
|
|
|
|
if (verifyResult.code !== 200) {
|
|
|
return res.json(verifyResult);
|
...
|
...
|
@@ -294,7 +297,7 @@ exports.orderSub = (req, res, next) => { |
|
|
userAgent: unionInfo.userAgent,
|
|
|
isWechat: req.yoho.isWechat,
|
|
|
ip: req.yoho.clientIp,
|
|
|
udid: req.cookies._yasvd || 'yoho'
|
|
|
udid: udid
|
|
|
};
|
|
|
|
|
|
/* tar modified 161206 套餐 */
|
...
|
...
|
|