Main/System/Mail/MailManager.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Main/System/Mail/MailManager.cs
@@ -222,8 +222,7 @@ if (!mailData.Items.IsNullOrEmpty()) { mailData.Items = mailData.Items .Where(item => ItemConfig.HasKey((int)item.ItemID)) // 防护,确保物品存在 .OrderByDescending(item => ItemConfig.Get((int)item.ItemID).ItemColor) // 按品质降序 .OrderByDescending(item => ItemConfig.HasKey((int)item.ItemID) ? ItemConfig.Get((int)item.ItemID).ItemColor : 0) // 按品质降序,未知物品排在最后 .ThenBy(item => item.Count) // 品质相同按数量升序 .ToList(); }