Commit 5a49f551 by 泽锋 李

改在线推送多推送一个接口

parent 2f02a52a
......@@ -496,6 +496,8 @@ namespace AutoTurnOver.Services
private static ShortagePush_ResponseDto ShortagePushApi(ShortagePush_RequestDto data)
{
string url = ConfigHelper.GetValue("PPS_ShortagePush");
string url2 = ConfigHelper.GetValue("PPS_ShortagePush2");
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");
var result = resultStr.ToObj<ShortagePush_ResponseDto>();
if (result == null)
......@@ -544,6 +546,8 @@ namespace AutoTurnOver.Services
private static ShortagePush_ResponseDto ReturnGoodsPushApi(ShortagePush_RequestDto data)
{
string url = ConfigHelper.GetValue("PPS_ShortagePush");
string url2 = ConfigHelper.GetValue("PPS_ShortagePush2");
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");
var result = resultStr.ToObj<ShortagePush_ResponseDto>();
if (result == null)
......
......@@ -3,6 +3,8 @@
"Default": "server=gz-cdb-kp7s5i79.sql.tencentcdb.com;port=61691;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
},
"Pams_GetAccountToken": "http://pams.bailuntec.com/Api/GetAccountToken",
"PPS_ShortagePush": "http://bltpro.bailuntec.com/api/EbayTask/PushSkuEditQtyTask",
"PPS_ShortagePush2": "http://pps.bailuntec.com/Api/AutoOperation/skutask/pushskueditqtytask",
"PPS_Return_GoodsPush": "",
"redis": {
"HostName": "127.0.0.1",
......
......@@ -10,5 +10,6 @@
"Defaultdatabase": "0"
},
"PPS_ShortagePush": "http://bltpro.bailuntec.com/api/EbayTask/PushSkuEditQtyTask",
"PPS_ShortagePush2": "http://pps.bailuntec.com/Api/AutoOperation/skutask/pushskueditqtytask",
"PPS_Return_GoodsPush": ""
}
......@@ -3,5 +3,6 @@
"Default": "server=10.0.8.15;port=3306;database=bailun_datacenter;uid=root;password=#7kfnymAM$Y9-Ntf;"
},
"PPS_ShortagePush": "http://10.0.6.8:8002/api/EbayTask/PushSkuEditQtyTask",
"PPS_ShortagePush2": "http://10.0.0.27:5051/skutask/pushskueditqtytask",
"PPS_Return_GoodsPush": ""
}
\ 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