This commit is contained in:
yulixing 2019-11-27 16:53:48 +08:00
parent c2b9adb823
commit 05de2d09e2

View File

@ -182,7 +182,7 @@ router.get('/tags', async (req, res, next) => {
// 增加浏览数
router.post('/view', async (req, res, next) => {
try {
const body = query.body
const body = req.body
const _id = body._id
const search = await Maker.findOne({ _id })
const view = search.view || 0