Authored by zhangxiaoru

bug

... ... @@ -45,7 +45,7 @@ const readdData = (req, res, next) => {
let uid = req.user.uid;
orderDetailModel.readdData(orderCode, uid).then((result) => {
console.log(result)
console.log(result);
res.json(result);
}).catch(next);
};
... ...
... ... @@ -318,10 +318,10 @@ const readdData = (orderCode, uid) => {
uid: uid,
order_code: orderCode
}).then((result) => {
if(result && result.code === 200) {
result.message = '商品已重新加入购物车' ;
}else if (result.code === '400') {
result.message = '缺失参数' ;
if (result && result.code === 200) {
result.message = '商品已重新加入购物车';
} else if (result.code === '400') {
result.message = '缺失参数';
} else {
result.message = '商品加入购物车失败';
result.datat = {};
... ...