Authored by zhangxiaoru

guang点赞

... ... @@ -25,7 +25,7 @@ const praiseArticle = (req, res, next) => {
/* 判断参数是否有效 */
let id = req.body.id,
opt = req.body.opt || 'ok',
udid = req.sessionID;
udid = req.sessionID || require('md5')(req.ip) || 'yoho';
if (!stringProcess.isNumeric(id)) {
res.json({ code: 400, message: '非法请求', data: '' });
... ...