From 4646e797c15d52cca24854caaa1381c87cb352b4 Mon Sep 17 00:00:00 2001 From: zhl Date: Thu, 27 May 2021 21:00:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=BA=97=E9=93=BA=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=9C=89=E6=97=B6=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/controllers/shop.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {