Commit a948a216 by lizefeng

采购单推送异常的时候,推送消息到企业微信

parent 1a0f2c21
...@@ -210,6 +210,7 @@ namespace AutoTurnOver.Services ...@@ -210,6 +210,7 @@ namespace AutoTurnOver.Services
} }
catch (Exception ex) catch (Exception ex)
{ {
report.AddError(new dc_task_error_log report.AddError(new dc_task_error_log
{ {
date = DateTime.Now, date = DateTime.Now,
...@@ -218,7 +219,8 @@ namespace AutoTurnOver.Services ...@@ -218,7 +219,8 @@ namespace AutoTurnOver.Services
task_name = "AutoPushBuySys" task_name = "AutoPushBuySys"
}); });
Console.WriteLine(ex.Message); Console.WriteLine(ex.Message);
ApiServices.QiYeJiQiRenMsPush(new QiYeJiQiRenMsDto { msgtype = "text",text = new QiYeJiQiRenMsDto.text_dto { content = " 海丽,aims 采购单推送失败,请手动推送 "} });
ApiServices.QiYeJiQiRenMsPush(new QiYeJiQiRenMsDto { msgtype = "text", text = new QiYeJiQiRenMsDto.text_dto { content = " 泽锋,查收异常消息: "+ex.Message } });
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment