|
|
@ -166,6 +166,9 @@ namespace BBWY.Server.Business |
|
|
|
if (request.GiftTemplateId == 0 && string.IsNullOrEmpty(request.MainProductGiftSku)) |
|
|
|
throw new BusinessException("赠品模板和主商品赠品SKU至少具备一个"); |
|
|
|
|
|
|
|
if (request.GiftTemplateId != 0 && !string.IsNullOrEmpty(request.MainProductGiftSku)) |
|
|
|
throw new BusinessException("不能同时具备赠品模板和主商品赠品"); |
|
|
|
|
|
|
|
if (request.IsNewProduct == null) |
|
|
|
request.IsNewProduct = 1; |
|
|
|
|
|
|
|