Commit 9e93a20e by 泽锋 李

切换在线改零的推送

parent df46084a
...@@ -495,9 +495,9 @@ namespace AutoTurnOver.Services ...@@ -495,9 +495,9 @@ namespace AutoTurnOver.Services
/// </summary> /// </summary>
private static ShortagePush_ResponseDto ShortagePushApi(ShortagePush_RequestDto data) private static ShortagePush_ResponseDto ShortagePushApi(ShortagePush_RequestDto data)
{ {
string url = ConfigHelper.GetValue("PPS_ShortagePush"); //string url = ConfigHelper.GetValue("PPS_ShortagePush");
string url2 = ConfigHelper.GetValue("PPS_ShortagePush2"); string url = ConfigHelper.GetValue("PPS_ShortagePush2");
string resultStr1 = HttpHelper.Request(url2, RequestType.POST, data.ToJson(), timeout: 1000 * 60 * 60 * 24, entype: "application/json"); //string resultStr1 = HttpHelper.Request(url2, 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"); string resultStr = HttpHelper.Request(url, RequestType.POST, data.ToJson(), timeout: 1000 * 60 * 60 * 24, entype: "application/json");
var result = resultStr.ToObj<ShortagePush_ResponseDto>(); var result = resultStr.ToObj<ShortagePush_ResponseDto>();
if (result == null) if (result == null)
...@@ -545,9 +545,9 @@ namespace AutoTurnOver.Services ...@@ -545,9 +545,9 @@ namespace AutoTurnOver.Services
/// </summary> /// </summary>
private static ShortagePush_ResponseDto ReturnGoodsPushApi(ShortagePush_RequestDto data) private static ShortagePush_ResponseDto ReturnGoodsPushApi(ShortagePush_RequestDto data)
{ {
string url = ConfigHelper.GetValue("PPS_ShortagePush"); //string url = ConfigHelper.GetValue("PPS_ShortagePush");
string url2 = ConfigHelper.GetValue("PPS_ShortagePush2"); string url = ConfigHelper.GetValue("PPS_ShortagePush2");
string resultStr2= HttpHelper.Request(url2, RequestType.POST, data.ToJson(), timeout: 1000 * 60 * 60 * 24, entype: "application/json"); //string resultStr2= HttpHelper.Request(url2, 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"); string resultStr = HttpHelper.Request(url, RequestType.POST, data.ToJson(), timeout: 1000 * 60 * 60 * 24, entype: "application/json");
var result = resultStr.ToObj<ShortagePush_ResponseDto>(); var result = resultStr.ToObj<ShortagePush_ResponseDto>();
if (result == null) if (result == null)
......
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