Commit d60e7aed by lizefeng

采购单推送失败时,记录异常信息

parent a948a216
...@@ -135,6 +135,8 @@ namespace AutoTurnOver.Services ...@@ -135,6 +135,8 @@ namespace AutoTurnOver.Services
/// <returns></returns> /// <returns></returns>
public static BuyOutputResult PushBuyPlan(mPlanToPurchaseDto data, bool is_skip_error) public static BuyOutputResult PushBuyPlan(mPlanToPurchaseDto data, bool is_skip_error)
{ {
try
{
//查询采购建议明细 //查询采购建议明细
string url = ConfigHelper.GetValue("PushBuyPlan"); string url = ConfigHelper.GetValue("PushBuyPlan");
string resultStr = HttpHelper.Request(url, RequestType.POST, "obj=" + WebUtility.UrlDecode(data.ToJson()), timeout: 1000 * 60 * 60 * 24); string resultStr = HttpHelper.Request(url, RequestType.POST, "obj=" + WebUtility.UrlDecode(data.ToJson()), timeout: 1000 * 60 * 60 * 24);
...@@ -184,6 +186,13 @@ namespace AutoTurnOver.Services ...@@ -184,6 +186,13 @@ namespace AutoTurnOver.Services
} }
return result; return result;
} }
catch (Exception ex)
{
throw new Exception(" 采购推送操作异常: "+ ex.Message) ;
}
}
/// <summary> /// <summary>
/// 提取sku /// 提取sku
......
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