sss
This commit is contained in:
@@ -43,7 +43,7 @@ _.router.post('/addCar', async function(req, res, next) {
|
||||
res.json({
|
||||
status: 200,
|
||||
message: '成功添加购物车',
|
||||
result: _.rsa.PrivateKeyEncryption(data)
|
||||
result: data
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -79,13 +79,13 @@ _.router.post('/getCarList', async function(req, res, next) {
|
||||
res.json({
|
||||
status: 200,
|
||||
message: '请求成功',
|
||||
result: _.rsa.PrivateKeyEncryption(data)
|
||||
result: data
|
||||
});
|
||||
} else {
|
||||
res.json({
|
||||
status: 200,
|
||||
message: '购物车没有数据',
|
||||
result: _.rsa.PrivateKeyEncryption({})
|
||||
result: {}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -130,17 +130,17 @@ _.router.post('/checkCar', async function(req, res, next) {
|
||||
res.json({
|
||||
status: 200,
|
||||
message: '商品已添加购物车',
|
||||
result: _.rsa.PrivateKeyEncryption({
|
||||
result: {
|
||||
isAddCar: true
|
||||
})
|
||||
}
|
||||
});
|
||||
} else {
|
||||
res.json({
|
||||
status: 200,
|
||||
message: '商品未添加购物车',
|
||||
result: _.rsa.PrivateKeyEncryption({
|
||||
result: {
|
||||
isAddCar: false
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ _.router.post('/deleteCar', async function(req, res, next) {
|
||||
res.json({
|
||||
status: 200,
|
||||
message: '删除成功',
|
||||
result: _.rsa.PrivateKeyEncryption({})
|
||||
result: {}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -221,13 +221,13 @@ _.router.post('/updateCarNum', async function(req, res, next) {
|
||||
res.json({
|
||||
status: 200,
|
||||
message: '更新成功',
|
||||
result: _.rsa.PrivateKeyEncryption({})
|
||||
result: {}
|
||||
});
|
||||
} else {
|
||||
res.json({
|
||||
status: 404,
|
||||
message: '更新失败',
|
||||
result: _.rsa.PrivateKeyEncryption({})
|
||||
result: {}
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -273,7 +273,7 @@ _.router.post('/submitCar', async function(req, res, next) {
|
||||
res.json({
|
||||
status: 200,
|
||||
message: '订单增加成功',
|
||||
result: _.rsa.PrivateKeyEncryption({})
|
||||
result: {}
|
||||
});
|
||||
});
|
||||
module.exports = _.router;
|
||||
|
||||
Reference in New Issue
Block a user