fix: 小小 药材价格查询 秘境通知修复
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user