From 289f695bd2f510bb8b4a8333f33601e79f48f000 Mon Sep 17 00:00:00 2001 From: zpc Date: Sat, 7 Dec 2024 11:19:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Code/CloudGaming.Code/Epg/EpgExtend.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/CloudGaming/Code/CloudGaming.Code/Epg/EpgExtend.cs b/src/CloudGaming/Code/CloudGaming.Code/Epg/EpgExtend.cs index 1c96da9..61ddf34 100644 --- a/src/CloudGaming/Code/CloudGaming.Code/Epg/EpgExtend.cs +++ b/src/CloudGaming/Code/CloudGaming.Code/Epg/EpgExtend.cs @@ -32,12 +32,12 @@ namespace CloudGaming.Code.Epg { CornerIcon = epgCfg.CornerIconId, EpgId = epgCfg.Id, - ResId = epgCfg.ResId, + ResId = epgCfg.ResId ?? "", ResType = epgCfg.ResType, - IdName = epgCfg.IdName, + IdName = epgCfg.IdName ?? "", ImageUrl = epgCfg.ImageId, - Title = epgCfg.Title, - SubTitle = epgCfg.Title2 + Title = epgCfg.Title ?? "", + SubTitle = epgCfg.Title2 ?? "" }; if (epgCfg.ResType == (int)EpgEnum.EpgResType.游戏) @@ -50,11 +50,11 @@ namespace CloudGaming.Code.Epg if (string.IsNullOrEmpty(epgInfo.Title)) { - epgInfo.Title = gameInfo.GameName; + epgInfo.Title = gameInfo.GameName ?? ""; } if (string.IsNullOrEmpty(epgInfo.SubTitle)) { - epgInfo.SubTitle = gameInfo.Title2; + epgInfo.SubTitle = gameInfo.Title2 ?? ""; } if (epgCfg.ImageResStyle == 0) {