Merge branch 'Hotfix_list_contain_yoho' into test6.9.14
Showing
3 changed files
with
7 additions
and
3 deletions
@@ -586,7 +586,8 @@ public class ShoppingServiceImpl implements IShoppingService { | @@ -586,7 +586,8 @@ public class ShoppingServiceImpl implements IShoppingService { | ||
586 | if(AddressHelper.isNeedUpdate(addressInfo)){ | 586 | if(AddressHelper.isNeedUpdate(addressInfo)){ |
587 | logger.warn("submit addressId need update, uid is {}, skup is {}, addressId is {}", shoppingRequest.getUid(), | 587 | logger.warn("submit addressId need update, uid is {}, skup is {}, addressId is {}", shoppingRequest.getUid(), |
588 | shoppingRequest.getSkup(), shoppingRequest.getAddressId()); | 588 | shoppingRequest.getSkup(), shoppingRequest.getAddressId()); |
589 | - throw new ServiceException(ServiceError.ORDER_ADDRESS_NEED_UPDATE); | 589 | + //throw new ServiceException(ServiceError.ORDER_ADDRESS_NEED_UPDATE); |
590 | + throw new UfoServiceException(400,"您的收货地址缺少所在地的街道信息,请更新收货地址"); | ||
590 | } | 591 | } |
591 | 592 | ||
592 | // 检查地址是否是鉴定中心的地址 | 593 | // 检查地址是否是鉴定中心的地址 |
@@ -111,7 +111,7 @@ public class SellerOrderPrepareProcessor | @@ -111,7 +111,7 @@ public class SellerOrderPrepareProcessor | ||
111 | if(AddressHelper.isNeedUpdate(noHiddenBackAddress)){ | 111 | if(AddressHelper.isNeedUpdate(noHiddenBackAddress)){ |
112 | log.warn("seller submit addressId need update, uid is {}, storageId is {}, addressId is {}", | 112 | log.warn("seller submit addressId need update, uid is {}, storageId is {}, addressId is {}", |
113 | uid, storageId, addressId); | 113 | uid, storageId, addressId); |
114 | - throw new ServiceException(ServiceError.ORDER_ADDRESS_NEED_UPDATE); | 114 | + throw new UfoServiceException(400,"您的收货地址缺少所在地的街道信息,请更新收货地址"); |
115 | } | 115 | } |
116 | 116 | ||
117 | Integer businessClientCode = OrderAssist.findBusinessClientCode(req.getBusinessClient()); | 117 | Integer businessClientCode = OrderAssist.findBusinessClientCode(req.getBusinessClient()); |
1 | package com.yohoufo.product.helper; | 1 | package com.yohoufo.product.helper; |
2 | 2 | ||
3 | +import com.yohoufo.common.constant.BusinessClientEnum; | ||
3 | import com.yohoufo.common.utils.AppVersion; | 4 | import com.yohoufo.common.utils.AppVersion; |
4 | import com.yohoufo.product.request.ProductSearchReq; | 5 | import com.yohoufo.product.request.ProductSearchReq; |
5 | import org.apache.commons.lang3.StringUtils; | 6 | import org.apache.commons.lang3.StringUtils; |
@@ -45,7 +46,9 @@ public class SearchHelpService { | @@ -45,7 +46,9 @@ public class SearchHelpService { | ||
45 | * @return | 46 | * @return |
46 | */ | 47 | */ |
47 | public void setContainYoho(String appVersion, ProductSearchReq req) { | 48 | public void setContainYoho(String appVersion, ProductSearchReq req) { |
48 | - if(StringUtils.isNotBlank(appVersion) && AppVersion.of(appVersion).greaterThanOrEquals(AppVersion.of("6.8.5"))){ | 49 | + // 闲鱼请求不能含YOHO |
50 | + if(StringUtils.isNotBlank(appVersion) && AppVersion.of(appVersion).greaterThanOrEquals(AppVersion.of("6.8.5")) | ||
51 | + && !BusinessClientEnum.isXianYu(req.getBusinessClient())){ | ||
49 | req.setContainYoho("Y"); | 52 | req.setContainYoho("Y"); |
50 | } | 53 | } |
51 | } | 54 | } |
-
Please register or login to post a comment