修正店铺配置有时无法获取的bug

This commit is contained in:
zhl 2021-05-27 21:00:15 +08:00
parent f102698744
commit 4646e797c1

View File

@ -95,7 +95,7 @@ class ShopController extends BaseController {
throw new ZError(11, '未找到对应的店铺')
}
rspData.gameCfg = {}
if (!shop.gameInfo) {
if (!!shop.gameInfo) {
let gameInfo = shop.gameInfo
let cfgRecord = await ShopGameExt.find({shop: shop.id, game: gameInfo.gameid, version: gameInfo.versionid})
if (cfgRecord && cfgRecord.length > 0) {