|
|
@ -112,10 +112,10 @@ namespace BBWY.Server.Business |
|
|
|
|
|
|
|
if (request.ProductParamList == null || request.ProductParamList.Count() == 0) |
|
|
|
throw new BusinessException("缺少商品参数"); |
|
|
|
if (request.ConsigneeRequest == null || |
|
|
|
string.IsNullOrEmpty(request.ConsigneeRequest.Address) || |
|
|
|
string.IsNullOrEmpty(request.ConsigneeRequest.Mobile) || |
|
|
|
string.IsNullOrEmpty(request.ConsigneeRequest.ContactName)) |
|
|
|
if (request.Consignee == null || |
|
|
|
string.IsNullOrEmpty(request.Consignee.Address) || |
|
|
|
string.IsNullOrEmpty(request.Consignee.Mobile) || |
|
|
|
string.IsNullOrEmpty(request.Consignee.ContactName)) |
|
|
|
throw new BusinessException("缺少收货人信息"); |
|
|
|
if (request.PurchaseAccountList == null || request.PurchaseAccountList.Count() == 0) |
|
|
|
throw new BusinessException("缺少采购账号"); |
|
|
@ -142,7 +142,7 @@ namespace BBWY.Server.Business |
|
|
|
AppKey = purchaseAccount.AppKey, |
|
|
|
AppSecret = purchaseAccount.AppSecret, |
|
|
|
AppToken = purchaseAccount.AppToken, |
|
|
|
Consignee = request.ConsigneeRequest, |
|
|
|
Consignee = request.Consignee, |
|
|
|
Platform = purchasePlatform, |
|
|
|
PurchaseOrderMode = request.PurchaseOrderMode, |
|
|
|
CargoParamList = productParamList.Select(p => new CargoParamRequest() |
|
|
|