Authored by 郭成尧

udid-default-value

... ... @@ -260,7 +260,7 @@ exports.orderSub = (req, res, next) => {
userAgent: userAgent,
isWechat: req.yoho.isWechat,
ip: req.ip || '',
udid: req.cookies._yasvd || ''
udid: req.cookies._yasvd || 'yoho'
};
/* tar modified 161206 套餐 */
... ...
... ... @@ -130,7 +130,7 @@ exports.saveAddress = (req, res, next) => {
id: decodeURIComponent(req.body.id),
mobile: req.body.mobile,
zip_code: req.body.zip_code,
udid: req.cookies._yasvd || ''
udid: req.cookies._yasvd || 'yoho'
}).then(result => {
res.json(result);
}).catch(next);
... ... @@ -223,7 +223,7 @@ exports.chooseAddress = (req, res, next) => {
let uid = req.user.uid;
let orderCode = req.query.orderCode;
let addressId = decodeURIComponent(req.query.addressId);
let udid = req.cookies._yasvd || '';
let udid = req.cookies._yasvd || 'yoho';
if (!addressId || !orderCode) {
return res.json({
... ...
... ... @@ -188,7 +188,7 @@ const addressModify = (req, res, next) => {
*/
const changeAddress = (req, res, next) => {
let uid = req.user.uid;
let udid = req.cookies._yasvd || '';
let udid = req.cookies._yasvd || 'yoho';
if (!uid) {
return res.json({
... ...