|
|
@ -298,11 +298,11 @@ namespace BBWY.Server.Business |
|
|
|
|
|
|
|
if (httpApiResult.StatusCode != System.Net.HttpStatusCode.OK) |
|
|
|
throw new BusinessException(httpApiResult.Content); |
|
|
|
var response = JsonConvert.DeserializeObject<ApiResponse<long>>(httpApiResult.Content); |
|
|
|
var response = JsonConvert.DeserializeObject<ApiResponse<long?>>(httpApiResult.Content); |
|
|
|
if (!response.Success) |
|
|
|
throw new BusinessException(response.Msg); |
|
|
|
var promotionId = response.Data; |
|
|
|
if (promotionId == 0) |
|
|
|
if (promotionId == null || promotionId == 0) |
|
|
|
return; |
|
|
|
fsql.Update<PromotionTask>(request.Id).Set(pt => pt.PromotionId, promotionId) |
|
|
|
.Set(pt => pt.StartTime, DateTime.Now) |
|
|
|