diff --git a/src/api/controllers/shop.controller.ts b/src/api/controllers/shop.controller.ts index 2987452..896ed55 100644 --- a/src/api/controllers/shop.controller.ts +++ b/src/api/controllers/shop.controller.ts @@ -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) {