using Lagrange.Core.Message; using Lagrange.Core.Message.Entity; using RoBot.Start.Service.Impl; namespace RoBot.Start.Cmd { /// /// 保存或更新物品价格 /// public class InertOrUpdateGoodsCmd { public static async Task Execute(MessageChain chain) { foreach (var item in chain) { if (item is TextEntity) { TextEntity txe = item as TextEntity; if (string.IsNullOrWhiteSpace(txe.Text) is false) { if (txe.Text.Contains("不鼓励不保障")) { GoodsService.AnalysisGoodsText(txe.Text); } } } } return true; } } }