Skip to content

Commit

Permalink
修复看板娘获取词条信息异常的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleFish-233 committed May 5, 2023
1 parent 183c2d3 commit b301f41
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -222,7 +222,7 @@ public async Task<string> GetEntryInfor(int id, bool plainText = false, bool sho
if (model.Type == EntryType.Game)
{

var steamIdStr = entry.Releases.FirstOrDefault(s => s.PublishPlatformType == PublishPlatformType.Steam && string.IsNullOrWhiteSpace(s.Link) == false).Link;
var steamIdStr = entry.Releases.FirstOrDefault(s => s.PublishPlatformType == PublishPlatformType.Steam && string.IsNullOrWhiteSpace(s.Link) == false)?.Link;
if (steamIdStr != null && int.TryParse(steamIdStr, out var steamId))
{
_ = sb.AppendLine();
Expand Down

0 comments on commit b301f41

Please sign in to comment.