fix 分享图列表获取bug
This commit is contained in:
parent
be3bad311c
commit
60e34cd9ec
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user