Showing
1 changed file
with
10 additions
and
0 deletions
@@ -10,13 +10,16 @@ import com.yohobuy.ufo.model.order.req.SellerOrderComputeReq; | @@ -10,13 +10,16 @@ import com.yohobuy.ufo.model.order.req.SellerOrderComputeReq; | ||
10 | import com.yohobuy.ufo.model.order.vo.AddressInfo; | 10 | import com.yohobuy.ufo.model.order.vo.AddressInfo; |
11 | import com.yohoufo.common.exception.UfoServiceException; | 11 | import com.yohoufo.common.exception.UfoServiceException; |
12 | import com.yohoufo.dal.order.model.StorageDeposit; | 12 | import com.yohoufo.dal.order.model.StorageDeposit; |
13 | +import com.yohoufo.order.constants.ClientSpecialSemanticCode; | ||
13 | import com.yohoufo.order.model.QuickDeliverOrderContext; | 14 | import com.yohoufo.order.model.QuickDeliverOrderContext; |
14 | import com.yohoufo.order.service.DepositService; | 15 | import com.yohoufo.order.service.DepositService; |
15 | import com.yohoufo.order.service.IBuyerOrderMetaService; | 16 | import com.yohoufo.order.service.IBuyerOrderMetaService; |
17 | +import com.yohoufo.order.service.proxy.UserProxyService; | ||
16 | import com.yohoufo.order.service.seller.PublishProcessor; | 18 | import com.yohoufo.order.service.seller.PublishProcessor; |
17 | import com.yohoufo.order.service.seller.SkupService; | 19 | import com.yohoufo.order.service.seller.SkupService; |
18 | import com.yohoufo.order.service.seller.processor.PriceComputePrepareProcessor; | 20 | import com.yohoufo.order.service.seller.processor.PriceComputePrepareProcessor; |
19 | import com.yohoufo.order.utils.LoggerUtils; | 21 | import com.yohoufo.order.utils.LoggerUtils; |
22 | +import com.yohoufo.order.utils.ServiceExceptions; | ||
20 | import org.apache.commons.collections.CollectionUtils; | 23 | import org.apache.commons.collections.CollectionUtils; |
21 | import org.slf4j.Logger; | 24 | import org.slf4j.Logger; |
22 | import org.springframework.beans.factory.annotation.Autowired; | 25 | import org.springframework.beans.factory.annotation.Autowired; |
@@ -41,6 +44,9 @@ public class QuickDeliverPublishProcessor implements PublishProcessor<QuickDeliv | @@ -41,6 +44,9 @@ public class QuickDeliverPublishProcessor implements PublishProcessor<QuickDeliv | ||
41 | @Autowired | 44 | @Autowired |
42 | private SkupService skupService; | 45 | private SkupService skupService; |
43 | 46 | ||
47 | + @Autowired | ||
48 | + private UserProxyService userProxyService; | ||
49 | + | ||
44 | @Override | 50 | @Override |
45 | public QuickDeliverOrderContext buildPublishCtx(QuickDeliverOrderSubmitReq qdosr) { | 51 | public QuickDeliverOrderContext buildPublishCtx(QuickDeliverOrderSubmitReq qdosr) { |
46 | 52 | ||
@@ -62,6 +68,10 @@ public class QuickDeliverPublishProcessor implements PublishProcessor<QuickDeliv | @@ -62,6 +68,10 @@ public class QuickDeliverPublishProcessor implements PublishProcessor<QuickDeliv | ||
62 | logger.warn("in buildSellerOrderContext storageId not exist in prd service , uid {}, storageId {}", uid, storageId); | 68 | logger.warn("in buildSellerOrderContext storageId not exist in prd service , uid {}, storageId {}", uid, storageId); |
63 | throw new ServiceException(ServiceError.ORDER_ORDERS_GOODS_IS_EMPTY); | 69 | throw new ServiceException(ServiceError.ORDER_ORDERS_GOODS_IS_EMPTY); |
64 | } | 70 | } |
71 | + if (!userProxyService.checkRealNameCert(uid)){ | ||
72 | + logger.warn("QuickDeliverPublishProcessor checkRealNameCert result false, uid {}", uid); | ||
73 | + throw new UfoServiceException(ClientSpecialSemanticCode.needRealName, "请完成实名认证后操作"); | ||
74 | + } | ||
65 | goodsInfo.setTargetSkupStatus(SkupStatus.CAN_SELL); | 75 | goodsInfo.setTargetSkupStatus(SkupStatus.CAN_SELL); |
66 | 76 | ||
67 | // query deposit code is exist in system | 77 | // query deposit code is exist in system |
-
mentioned in commit 8ba1c9f5
-
Please register or login to post a comment