Commit ae08abe1 by lizefeng

改零推送发生异常,需要推送消息

parent 161ed523
......@@ -574,7 +574,7 @@ namespace AutoTurnOver.Services
}
catch (Exception ex)
{
ApiServices.QiYeJiQiRenMsPush(new QiYeJiQiRenMsDto { msgtype = "text", text = new QiYeJiQiRenMsDto.text_dto { content = " 改0推送异常 :" + ex.Message } });
throw;
}
......@@ -664,9 +664,9 @@ namespace AutoTurnOver.Services
return result;
}
public static void QiYeJiQiRenMsPush(QiYeJiQiRenMsDto data)
public static void QiYeJiQiRenMsPush(QiYeJiQiRenMsDto data,string key = "QiYeJiQiRen")
{
string url = ConfigHelper.GetValue("QiYeJiQiRen");
string url = ConfigHelper.GetValue(key);
string resultStr = HttpHelper.Request(url, RequestType.POST, data.ToJson(), timeout: 1000 * 60 * 60 * 24, entype: "application/json");
}
......
......@@ -558,6 +558,7 @@ namespace AutoTurnOver.Services
}
catch (Exception ex)
{
ApiServices.QiYeJiQiRenMsPush(new QiYeJiQiRenMsDto { msgtype = "text", text = new QiYeJiQiRenMsDto.text_dto { content = " 改0推送异常 :"+ex.Message } });
Console.WriteLine(ex.Message);
Console.WriteLine(ex.StackTrace);
}
......
......@@ -22,7 +22,7 @@ namespace ShortagePush
//new ReportServices().ShortagePushEbay(true, true);
//new ReportServices().ShortagePushEbay(true);
//new ReportServices().ReturnGoodsPush();
//new ReportServices().ShortagePushEbay();
//new ReportServices().ShortagePush();
//new ReportServices().PPSReturnGoodsPush("walmart");
//new ReportServices().ShortagePushEbay(true);
......
......@@ -13,5 +13,6 @@
"pps-sys": {
"review": "https://pps.bailuntec.com/Api/amazon/analyze/Download/GetReviewInfoBy",
"pps_sell_product": "http://pps.bailuntec.com/WalmartApi/Publish/GetWithSellProductAsync"
}
},
"QiYeJiQiRen": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=5fa4c1d5-ce65-4e8a-9ae9-a0d689a13b65"
}
\ No newline at end of file
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