shanji 2 years ago
parent
commit
b3dfea721f
  1. 25
      BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs

25
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(() =>
@ -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<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(() =>
@ -709,7 +709,10 @@ namespace BBWY.Server.Business
throw new BusinessException(httpResult.Content);
var response = JsonConvert.DeserializeObject<ApiResponse>(httpResult.Content);
if (!response.Success)
throw new BusinessException(response.Msg);
{
if (!response.Msg.Contains("促销已删除"))
throw new BusinessException(response.Msg);
}
fsql.Update<PromotionTask>(request.Id).Set(pt => pt.Status, Enums.PromitionTaskStatus.).ExecuteAffrows();
}

Loading…
Cancel
Save