diff --git a/BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs b/BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs index 9861d297..abb7fd32 100644 --- a/BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs +++ b/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(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(httpResult.Content); + if (!response.Success) + throw new BusinessException(response.Msg); } fsql.Transaction(() => @@ -665,11 +665,11 @@ namespace BBWY.Server.Business }, GetYunDingRequestHeader(), HttpMethod.Post); - //if (httpResult.StatusCode != System.Net.HttpStatusCode.OK) - // throw new BusinessException(httpResult.Content); - //var response = JsonConvert.DeserializeObject(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(httpResult.Content); + if (!response.Success) + throw new BusinessException(response.Msg); } fsql.Transaction(() => @@ -709,7 +709,10 @@ namespace BBWY.Server.Business throw new BusinessException(httpResult.Content); var response = JsonConvert.DeserializeObject(httpResult.Content); if (!response.Success) - throw new BusinessException(response.Msg); + { + if (!response.Msg.Contains("促销已删除")) + throw new BusinessException(response.Msg); + } fsql.Update(request.Id).Set(pt => pt.Status, Enums.PromitionTaskStatus.已停止).ExecuteAffrows(); }