Authored by zhangxiaoru

editorial

... ... @@ -158,7 +158,7 @@ const detail = (req, res, next) => {
let setCollect = (req, res, next) => {
let uid = req.user.uid;
let id = req.params.id;
let id = req.body.id;
editorialModel.setCollect(id, uid).then((result) => {
res.json(result);
... ... @@ -167,7 +167,7 @@ let setCollect = (req, res, next) => {
let cancelCollect = (req, res, next) => {
let uid = req.user.uid;
let id = req.params.id;
let id = req.body.id;
editorialModel.setCollect(id, uid).then((result) => {
res.json(result);
... ...