fix: 小小 药材价格查询 秘境通知修复

This commit is contained in:
LyMysterious
2026-06-19 23:38:44 +08:00
parent b787478819
commit 34bf5c4d61
10 changed files with 62 additions and 22 deletions
@@ -14,7 +14,7 @@ namespace NapCatRobotClient.Service.Group.TextProcess
{
JObject json = JObject.Parse(message);
var messageArray = JArray.Parse(json["message"].ToString());
string groupMsg = messageArray.FirstOrDefault(o => o["type"].ToString() == "text"
string groupMsg = messageArray.LastOrDefault(o => o["type"].ToString() == "text"
&& !string.IsNullOrWhiteSpace(o["data"]["text"].ToString()))?["data"]?["text"]?.ToString();
if (string.IsNullOrWhiteSpace(groupMsg)) return false;