...
|
...
|
@@ -59,7 +59,7 @@ const collectArticle = (req, res, next) => { |
|
|
/* 判断用户是否登录 */
|
|
|
let id = req.body.id,
|
|
|
opt = req.body.opt || 'ok',
|
|
|
uid = req.body.uid;
|
|
|
uid = req.user.uid;
|
|
|
|
|
|
/* 判断是不是登录成功 */
|
|
|
if (!uid) {
|
...
|
...
|
@@ -112,7 +112,7 @@ const favoriteBrand = (req, res, next) => { |
|
|
/* 判断参数是否有效 */
|
|
|
let id = req.body.id,
|
|
|
opt = req.body.opt || 'ok',
|
|
|
uid = req.user.uid || (req.body.uid && parseInt(req.body.uid, 10)) || req.cookies.appUid,
|
|
|
uid = req.user.uid,
|
|
|
isBrand = req.body.isBrand;
|
|
|
|
|
|
if (!stringProcess.isNumeric(id) || !stringProcess.isNumeric(uid)) {
|
...
|
...
|
|