|
|
@@ -99,14 +99,14 @@ public static class QianRunApi
|
|
|
Convert.ToBoolean(json["Success"]), result, 31022);
|
|
|
return formatResult(result);
|
|
|
}
|
|
|
- catch
|
|
|
+ catch (Exception ex)
|
|
|
{
|
|
|
result = "包装_乾润接口请求失败!";
|
|
|
//Logger.Debug("包装_乾润接口请求失败:" + url + "?" + JsonClient.ParaToString(ht));
|
|
|
ApiLog.WriteApiLog(
|
|
|
"包装_乾润_出库单创建", url + "?" + JsonClient.ParaToString(ht),
|
|
|
false, result, 31022);
|
|
|
- return new JsonResult() { success = false, status = JsonStatus.error, message = result}.ToJson();
|
|
|
+ return new JsonResult() { success = false, status = JsonStatus.error, message = result+ ex.ToString() }.ToJson();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -136,14 +136,14 @@ public static class QianRunApi
|
|
|
Convert.ToBoolean(json["Success"]), result, 31032);
|
|
|
return formatResult(result);
|
|
|
}
|
|
|
- catch
|
|
|
- {
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
result = "包装_乾润接口请求失败!";
|
|
|
//Logger.Debug("包装_乾润接口请求失败:" + url + "?" + JsonClient.ParaToString(ht));
|
|
|
ApiLog.WriteApiLog(
|
|
|
"包装_乾润_出库单更新", url + "?" + JsonClient.ParaToString(ht),
|
|
|
false, result, 31032);
|
|
|
- return new JsonResult() { success = false, status = JsonStatus.error, message = result }.ToJson();
|
|
|
+ return new JsonResult() { success = false, status = JsonStatus.error, message = result+ ex.ToString() }.ToJson();
|
|
|
}
|
|
|
}
|
|
|
|