This commit is contained in:
parent
54c57a5b05
commit
7bcb42531b
|
@ -54,10 +54,10 @@ namespace ProductClient
|
|||
//var thread = TimerTask.NewTimer<MonitorThread>(60) as MonitorThread;
|
||||
|
||||
EventClient.DyyNoticeEvent += EventClient_DyyNoticeEvent;
|
||||
//EventClient_DyyNoticeEvent(null, new DyyNoticeEvent()
|
||||
//{
|
||||
// Data = "{\"Id\":\"122522636742819840\",\"TaskId\":\"122522636742819840\",\"IsGoods\":true}"
|
||||
//});
|
||||
EventClient_DyyNoticeEvent(null, new DyyNoticeEvent()
|
||||
{
|
||||
Data = "{\"Id\":\"122522636742819840\",\"TaskId\":\"122522636742819840\",\"IsGoods\":true}"
|
||||
});
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
@ -618,20 +618,23 @@ namespace ProductClient
|
|||
else
|
||||
EventClient.OnEvent(null, $"【代运营朋友圈】 => {item.WeixinHao},转发成功");
|
||||
|
||||
if (!Class1.Config.isPl)
|
||||
{
|
||||
//if (!Class1.Config.isPl)
|
||||
//{
|
||||
var reg = Regex.Match(json.Replace("<![CDATA[", "").Replace("]]>", ""), @"<id>(?<id>\d{15,})</id>");//获取返回的朋友圈id
|
||||
if (reg.Success && comments != null && comments.Count > 0)
|
||||
{
|
||||
var id = reg.Groups["id"].Value;
|
||||
comments.Add(Class1.Config.appendComment);
|
||||
var commentStr = string.Join("[分段]", comments);
|
||||
|
||||
EventClient.OnEvent(null, $"【代运营朋友圈】 => {item.WeixinHao},评论内容:{commentStr}");
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(commentStr))
|
||||
{
|
||||
item.SendCircleComment(item.User.Username, id, commentStr.Replace("[活动口令]", Class1.Config.actionLink));
|
||||
}
|
||||
}
|
||||
}
|
||||
//}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue