Commit 244feaa6 by lizefeng

Merge branch 'master' into develop

parents 62e5ec6f 83a38fd9
...@@ -574,7 +574,7 @@ namespace AutoTurnOver.Services ...@@ -574,7 +574,7 @@ namespace AutoTurnOver.Services
} }
catch (Exception ex) catch (Exception ex)
{ {
ApiServices.QiYeJiQiRenMsPush(new QiYeJiQiRenMsDto { msgtype = "text", text = new QiYeJiQiRenMsDto.text_dto { content = " 改0推送异常 :" + ex.Message } });
throw; throw;
} }
...@@ -664,9 +664,9 @@ namespace AutoTurnOver.Services ...@@ -664,9 +664,9 @@ namespace AutoTurnOver.Services
return result; 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"); string resultStr = HttpHelper.Request(url, RequestType.POST, data.ToJson(), timeout: 1000 * 60 * 60 * 24, entype: "application/json");
} }
......
...@@ -631,6 +631,7 @@ namespace AutoTurnOver.Services ...@@ -631,6 +631,7 @@ namespace AutoTurnOver.Services
} }
catch (Exception ex) 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.Message);
Console.WriteLine(ex.StackTrace); Console.WriteLine(ex.StackTrace);
} }
......
...@@ -22,7 +22,7 @@ namespace ShortagePush ...@@ -22,7 +22,7 @@ namespace ShortagePush
//new ReportServices().ShortagePushEbay(true, true); //new ReportServices().ShortagePushEbay(true, true);
//new ReportServices().ShortagePushEbay(true); //new ReportServices().ShortagePushEbay(true);
//new ReportServices().ReturnGoodsPush(); //new ReportServices().ReturnGoodsPush();
//new ReportServices().ShortagePushEbay(); //new ReportServices().ShortagePush();
//new ReportServices().PPSReturnGoodsPush("walmart"); //new ReportServices().PPSReturnGoodsPush("walmart");
//new ReportServices().ShortagePushEbay(true); //new ReportServices().ShortagePushEbay(true);
......
...@@ -13,5 +13,6 @@ ...@@ -13,5 +13,6 @@
"pps-sys": { "pps-sys": {
"review": "https://pps.bailuntec.com/Api/amazon/analyze/Download/GetReviewInfoBy", "review": "https://pps.bailuntec.com/Api/amazon/analyze/Download/GetReviewInfoBy",
"pps_sell_product": "http://pps.bailuntec.com/WalmartApi/Publish/GetWithSellProductAsync" "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