feat:调整灵田回复 悬赏令回复
This commit is contained in:
@@ -4,7 +4,7 @@ namespace NapCatRobotClient.Service.Group.Service
|
||||
{
|
||||
public class GroupService : IGroupService, IScoped
|
||||
{
|
||||
private static string GroupQQ = App.Configuration["QQConfig:XiuXianGroupId"];
|
||||
private static List<string> GroupQQ = App.GetConfig<List<string>>("QQConfig:XiuXianGroupId");
|
||||
|
||||
/// <summary>
|
||||
/// 处理群消息
|
||||
@@ -16,7 +16,7 @@ namespace NapCatRobotClient.Service.Group.Service
|
||||
JObject json = JObject.Parse(message);
|
||||
string groupId = json["group_id"]?.ToString() ?? string.Empty;
|
||||
string groupMsg = json["message"]?.ToString() ?? string.Empty;
|
||||
if (GroupQQ == groupId && string.IsNullOrWhiteSpace(groupMsg) is false)
|
||||
if (GroupQQ.Contains(groupId) && string.IsNullOrWhiteSpace(groupMsg) is false)
|
||||
{
|
||||
_ = WantedPriceProcess.ProcessGroupRequest(groupId, message);
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace NapCatRobotClient.Service.Group.TextProcess
|
||||
Type = "text",
|
||||
Data = new()
|
||||
{
|
||||
Text = $"\r\n【灵田结算通知】\r\n该结算奖励了!"
|
||||
Text = $"【灵田结算通知】\r\n该结算奖励了!"
|
||||
}
|
||||
},
|
||||
new MessageItem()
|
||||
|
||||
@@ -62,6 +62,14 @@ namespace NapCatRobotClient.Service.Group.TextProcess
|
||||
GroupId = groupId,
|
||||
Message = new()
|
||||
{
|
||||
new MessageItem()
|
||||
{
|
||||
Type = "reply",
|
||||
Data = new()
|
||||
{
|
||||
Id = json["message_id"].ToString()
|
||||
}
|
||||
},
|
||||
new MessageItem()
|
||||
{
|
||||
Type = "text",
|
||||
|
||||
Reference in New Issue
Block a user