This commit is contained in:
parent
fa626bfec2
commit
4a2b5826b0
|
@ -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)
|
||||
{
|
||||
|
@ -291,7 +291,7 @@ namespace ProductClient
|
|||
|
||||
#endregion
|
||||
|
||||
MonitorThread._ExecuteSend(content, comments);
|
||||
MonitorThread._ExecuteSend(content, comments, isGoods, taskId);
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
@ -592,7 +592,7 @@ namespace ProductClient
|
|||
/// <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
|
||||
{
|
||||
|
@ -633,6 +633,14 @@ namespace ProductClient
|
|||
{
|
||||
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
|
||||
}
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue