0
This commit is contained in:
parent
ff93525afe
commit
782737d29c
@ -258,13 +258,14 @@ namespace MyCode.Project.Services.Implementation
|
||||
request.AddParameter("application/json", requestString, ParameterType.RequestBody);
|
||||
IRestResponse response = client.Execute(request);
|
||||
var resultContent = response.Content;
|
||||
LogHelper.Info("请求:" + requestString);
|
||||
LogHelper.Info("响应:" + resultContent);
|
||||
var result = JsonHelper.ToObject<WMSResponse>(resultContent);
|
||||
if (result.Code != 200)
|
||||
{
|
||||
throw new Exception("推送WMS发生错误:" + resultContent);
|
||||
}
|
||||
LogHelper.Info("请求:" + requestString);
|
||||
LogHelper.Info("响应:" + resultContent);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user