...
|
...
|
@@ -106,7 +106,7 @@ const favoriteBrand = (req, res, next) => { |
|
|
/* 判断参数是否有效 */
|
|
|
let id = req.body.id,
|
|
|
opt = req.body.opt || 'ok',
|
|
|
uid = req.body.uid || req.cookies.appUid,
|
|
|
uid = req.user.uid || (req.body.uid && parseInt(crypto.decrypt(null, req.body.uid))) || req.cookies.appUid,
|
|
|
isBrand = req.body.isBrand;
|
|
|
|
|
|
if (!stringProcess.isNumeric(id) || !stringProcess.isNumeric(uid)) {
|
...
|
...
|
|