|
|
@ -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(); |
|
|
|
} |
|
|
|
|
|
|
|