|
@@ -121,7 +121,12 @@ namespace XYY.Service.Standard.ChannelApi.DeDhl
|
|
|
var resultData = Newtonsoft.Json.JsonConvert.DeserializeObject<ResultData>(response.Content);
|
|
|
if (resultData == null)
|
|
|
throw new Exception("下家服务器访问异常");
|
|
|
- throw new Exception(resultData.status.detail);
|
|
|
+ var list = resultData.items?.SelectMany(x => x.validationMessages?.Select(y => y?.validationMessage));
|
|
|
+ string msgJoin = resultData.status.detail;
|
|
|
+
|
|
|
+ if (list != null)
|
|
|
+ msgJoin += string.Join(',', list);
|
|
|
+ throw new Exception( msgJoin);
|
|
|
}
|
|
|
//var request = new HttpRequestMessage
|
|
|
//{
|