...
|
...
|
@@ -12,6 +12,7 @@ import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail; |
|
|
import com.yohobuy.ufo.model.order.resp.ExpressInfoRespBo;
|
|
|
import com.yohoufo.common.constant.EnumExpressSender;
|
|
|
import com.yohoufo.common.constant.ExpressInfoConstant;
|
|
|
import com.yohoufo.common.exception.UfoServiceException;
|
|
|
import com.yohoufo.common.utils.DateUtil;
|
|
|
import com.yohoufo.dal.order.*;
|
|
|
import com.yohoufo.dal.order.model.*;
|
...
|
...
|
@@ -256,16 +257,16 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
if(actor!=null){
|
|
|
switch (actor){
|
|
|
case BUY:
|
|
|
if(uid!=buyerOrder.getUid()){
|
|
|
if(!uid.equals(buyerOrder.getUid())){
|
|
|
//验证是买家
|
|
|
LOGGER.warn("queryExpressDetailInfo check order not match buyer , uid = {} ,order is {} ", orderCode ,JSON.toJSONString(buyerOrder) );
|
|
|
throw new ServiceException(ServiceError.ORDER_NULL);
|
|
|
throw new UfoServiceException(400,"订单物流不允许买家用户查询");
|
|
|
}
|
|
|
case SELL:
|
|
|
if(uid!=buyerOrder.getSellerUid()){
|
|
|
if(!uid.equals(buyerOrder.getSellerUid())){
|
|
|
//验证是卖家
|
|
|
LOGGER.warn("queryExpressDetailInfo check order not match seller , uid = {} ,order is {} ", orderCode ,JSON.toJSONString(buyerOrder) );
|
|
|
throw new ServiceException(ServiceError.ORDER_NULL);
|
|
|
throw new UfoServiceException(400,"订单物流不允许卖家用户查询");
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|