shanji 2 years ago
parent
commit
0c377ed8f2
  1. 10
      BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs

10
BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs

@ -620,11 +620,11 @@ namespace BBWY.Server.Business
},
GetYunDingRequestHeader(),
HttpMethod.Post);
if (httpResult.StatusCode != System.Net.HttpStatusCode.OK)
throw new BusinessException(httpResult.Content);
var response = JsonConvert.DeserializeObject<ApiResponse>(httpResult.Content);
if (!response.Success)
throw new BusinessException(response.Msg);
//if (httpResult.StatusCode != System.Net.HttpStatusCode.OK)
// throw new BusinessException(httpResult.Content);
//var response = JsonConvert.DeserializeObject<ApiResponse>(httpResult.Content);
//if (!response.Success)
// throw new BusinessException(response.Msg);
}
fsql.Transaction(() =>

Loading…
Cancel
Save