diff --git a/src/controllers/games/share.js b/src/controllers/games/share.js index 968db41..69248dc 100644 --- a/src/controllers/games/share.js +++ b/src/controllers/games/share.js @@ -79,7 +79,7 @@ router.post('/list', async (req, res, next) => { if (shareType) { opt.share_type = shareType } - if (type !== '') { + if (type || type === 0) { opt.type = type } let records @@ -90,7 +90,6 @@ router.post('/list', async (req, res, next) => { } else { records = await GameShareImageModel.find(opt) } - const total = await GameShareImageModel.find(opt).countDocuments() const systemDics = await SystemDic.find({ deleted: false,