This commit is contained in:
老道 2022-12-10 10:09:10 +08:00
parent fa626bfec2
commit 4a2b5826b0
2 changed files with 14 additions and 6 deletions

View File

@ -54,10 +54,10 @@ namespace ProductClient
//var thread = TimerTask.NewTimer<MonitorThread>(60) as MonitorThread; //var thread = TimerTask.NewTimer<MonitorThread>(60) as MonitorThread;
EventClient.DyyNoticeEvent += EventClient_DyyNoticeEvent; EventClient.DyyNoticeEvent += EventClient_DyyNoticeEvent;
EventClient_DyyNoticeEvent(null, new DyyNoticeEvent() //EventClient_DyyNoticeEvent(null, new DyyNoticeEvent()
{ //{
Data = "{\"Id\":\"122522636742819840\",\"TaskId\":\"122522636742819840\",\"IsGoods\":true}" // Data = "{\"Id\":\"122522636742819840\",\"TaskId\":\"122522636742819840\",\"IsGoods\":true}"
}); //});
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -291,7 +291,7 @@ namespace ProductClient
#endregion #endregion
MonitorThread._ExecuteSend(content, comments); MonitorThread._ExecuteSend(content, comments, isGoods, taskId);
} }
catch (Exception ex) catch (Exception ex)

View File

@ -592,7 +592,7 @@ namespace ProductClient
/// <summary> /// <summary>
/// 执行发送任务 /// 执行发送任务
/// </summary> /// </summary>
public static void _ExecuteSend(string objectDesc, List<string> comments) public static void _ExecuteSend(string objectDesc, List<string> comments,bool isGoods,string taskId)
{ {
try try
{ {
@ -633,6 +633,14 @@ namespace ProductClient
{ {
item.SendCircleComment(item.User.Username, id, commentStr.Replace("[活动口令]", Class1.Config.actionLink)); item.SendCircleComment(item.User.Username, id, commentStr.Replace("[活动口令]", Class1.Config.actionLink));
} }
if (isGoods)
{
#region
HttpHelper http = new HttpHelper();
var html = http.GetHtml($"http://goods.api.52cmg.cn/api/WechatMomentsGoods-WechatMoments/RecordSending?taskId={taskId}").Html;
#endregion
}
} }
//} //}
} }