Authored by mali

Merge branch 'test6.8.6' into gray

@@ -37,6 +37,7 @@ import org.springframework.stereotype.Service; @@ -37,6 +37,7 @@ import org.springframework.stereotype.Service;
37 37
38 import java.math.BigDecimal; 38 import java.math.BigDecimal;
39 import java.util.Arrays; 39 import java.util.Arrays;
  40 +import java.util.Objects;
40 import java.util.concurrent.Callable; 41 import java.util.concurrent.Callable;
41 import java.util.concurrent.Future; 42 import java.util.concurrent.Future;
42 43
@@ -90,9 +91,6 @@ public class BuyerOrderCancelService { @@ -90,9 +91,6 @@ public class BuyerOrderCancelService {
90 private OrderStatusFlowService orderStatusFlowService; 91 private OrderStatusFlowService orderStatusFlowService;
91 92
92 93
93 -  
94 -  
95 -  
96 public void cancel(BeforeSellerDeliverEvent bsdEvent){ 94 public void cancel(BeforeSellerDeliverEvent bsdEvent){
97 int buyerUid = bsdEvent.getBuyerUid(); 95 int buyerUid = bsdEvent.getBuyerUid();
98 int sellerUid = bsdEvent.getSellerUid(); 96 int sellerUid = bsdEvent.getSellerUid();
@@ -114,6 +112,8 @@ public class BuyerOrderCancelService { @@ -114,6 +112,8 @@ public class BuyerOrderCancelService {
114 int currentTime = DateUtil.getCurrentTimeSecond(); 112 int currentTime = DateUtil.getCurrentTimeSecond();
115 int rows = buyerOrderMapper.updateStatusByOrderCode(orderCode, buyerUid, expected.getCode(), targetOrderStatus.getCode(), currentTime); 113 int rows = buyerOrderMapper.updateStatusByOrderCode(orderCode, buyerUid, expected.getCode(), targetOrderStatus.getCode(), currentTime);
116 if (rows>0) { 114 if (rows>0) {
  115 + boolean noResponsibility = Objects.isNull(bpcr.getPenaltyAmount())
  116 + || BigDecimal.ZERO.compareTo(bpcr.getPenaltyAmount()) == 0;
117 //退还优惠券 117 //退还优惠券
118 refundCouponIfNeed(buyerUid, orderCode); 118 refundCouponIfNeed(buyerUid, orderCode);
119 int skup = bsdEvent.getSkup(); 119 int skup = bsdEvent.getSkup();
@@ -128,8 +128,12 @@ public class BuyerOrderCancelService { @@ -128,8 +128,12 @@ public class BuyerOrderCancelService {
128 soc.setUpdateTime(DateUtil.getCurrentTimeSecond()); 128 soc.setUpdateTime(DateUtil.getCurrentTimeSecond());
129 sellerOrderMapper.updateBySkups(soc, Arrays.asList(skup)); 129 sellerOrderMapper.updateBySkups(soc, Arrays.asList(skup));
130 SellerOrderGoods psog = sellerOrderGoodsMapper.selectByPrimaryKey(skup); 130 SellerOrderGoods psog = sellerOrderGoodsMapper.selectByPrimaryKey(skup);
  131 + if (noResponsibility){
  132 + inBoxFacade.noticeSellerWhenBuyerCancelNoResponsibility(psog, orderCode);
  133 + }else {
131 inBoxFacade.buyerCancelBeforeSellerDeliver(buyerUid, orderCode, 134 inBoxFacade.buyerCancelBeforeSellerDeliver(buyerUid, orderCode,
132 bpcr.getPenaltyAmount().toPlainString(), psog); 135 bpcr.getPenaltyAmount().toPlainString(), psog);
  136 + }
133 //TODO 整个过程异步去执行(考虑退费依赖订单状态) 137 //TODO 整个过程异步去执行(考虑退费依赖订单状态)
134 //(退费)退保证金给卖家 138 //(退费)退保证金给卖家
135 //(转账)瓜分指定赔偿款给卖家和平台 139 //(转账)瓜分指定赔偿款给卖家和平台
@@ -217,10 +221,11 @@ public class BuyerOrderCancelService { @@ -217,10 +221,11 @@ public class BuyerOrderCancelService {
217 } 221 }
218 222
219 OrderStatus expected = bdrEvent.getExpected(); 223 OrderStatus expected = bdrEvent.getExpected();
220 -  
221 int currentTime = DateUtil.getCurrentTimeSecond(); 224 int currentTime = DateUtil.getCurrentTimeSecond();
222 int rows = buyerOrderMapper.updateStatusByOrderCode(orderCode, buyerUid, expected.getCode(), targetOrderStatus.getCode(), currentTime); 225 int rows = buyerOrderMapper.updateStatusByOrderCode(orderCode, buyerUid, expected.getCode(), targetOrderStatus.getCode(), currentTime);
223 if (rows>0) { 226 if (rows>0) {
  227 + boolean noResponsibility = Objects.isNull(bpcr.getPenaltyAmount())
  228 + || BigDecimal.ZERO.compareTo(bpcr.getPenaltyAmount()) == 0;
224 //退还优惠券 229 //退还优惠券
225 refundCouponIfNeed(buyerUid, orderCode); 230 refundCouponIfNeed(buyerUid, orderCode);
226 231
@@ -236,8 +241,12 @@ public class BuyerOrderCancelService { @@ -236,8 +241,12 @@ public class BuyerOrderCancelService {
236 soc.setUpdateTime(DateUtil.getCurrentTimeSecond()); 241 soc.setUpdateTime(DateUtil.getCurrentTimeSecond());
237 sellerOrderMapper.updateBySkups(soc, Arrays.asList(skup)); 242 sellerOrderMapper.updateBySkups(soc, Arrays.asList(skup));
238 SellerOrderGoods psog = sellerOrderGoodsMapper.selectByPrimaryKey(skup); 243 SellerOrderGoods psog = sellerOrderGoodsMapper.selectByPrimaryKey(skup);
  244 + if (noResponsibility){
  245 + inBoxFacade.noticeSellerWhenBuyerCancelNoResponsibility(psog, orderCode);
  246 + }else {
239 inBoxFacade.buyerCancelBeforeDepotReceive(buyerUid, orderCode, 247 inBoxFacade.buyerCancelBeforeDepotReceive(buyerUid, orderCode,
240 bpcr.getPenaltyAmount().toPlainString(), psog); 248 bpcr.getPenaltyAmount().toPlainString(), psog);
  249 + }
241 //整个过程异步去执行(考虑退费依赖订单状态) 250 //整个过程异步去执行(考虑退费依赖订单状态)
242 //(退费)退保证金给卖家 251 //(退费)退保证金给卖家
243 //(转账)瓜分指定赔偿款给卖家和平台 252 //(转账)瓜分指定赔偿款给卖家和平台
@@ -9,6 +9,7 @@ import com.yohobuy.ufo.model.order.constants.OrderConstant; @@ -9,6 +9,7 @@ import com.yohobuy.ufo.model.order.constants.OrderConstant;
9 import com.yohobuy.ufo.model.order.constants.SkupType; 9 import com.yohobuy.ufo.model.order.constants.SkupType;
10 import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail; 10 import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail;
11 import com.yohobuy.ufo.model.order.vo.AddressInfo; 11 import com.yohobuy.ufo.model.order.vo.AddressInfo;
  12 +import com.yohoufo.common.utils.BigDecimalHelper;
12 import com.yohoufo.common.utils.DateUtil; 13 import com.yohoufo.common.utils.DateUtil;
13 import com.yohoufo.dal.order.*; 14 import com.yohoufo.dal.order.*;
14 import com.yohoufo.dal.order.model.*; 15 import com.yohoufo.dal.order.model.*;
@@ -18,6 +19,7 @@ import com.yohoufo.order.constants.MetaKey; @@ -18,6 +19,7 @@ import com.yohoufo.order.constants.MetaKey;
18 import com.yohoufo.order.constants.ViewType; 19 import com.yohoufo.order.constants.ViewType;
19 import com.yohoufo.order.convert.GoodsInfoConvertor; 20 import com.yohoufo.order.convert.GoodsInfoConvertor;
20 import com.yohoufo.order.convert.SellerOrderConvertor; 21 import com.yohoufo.order.convert.SellerOrderConvertor;
  22 +import com.yohoufo.order.model.dto.BuyerPenaltyCalResult;
21 import com.yohoufo.order.model.dto.SellerOrderComputeResult; 23 import com.yohoufo.order.model.dto.SellerOrderComputeResult;
22 import com.yohoufo.order.model.request.OrderRequest; 24 import com.yohoufo.order.model.request.OrderRequest;
23 import com.yohoufo.order.model.response.OrderDetailInfo; 25 import com.yohoufo.order.model.response.OrderDetailInfo;
@@ -25,6 +27,7 @@ import com.yohoufo.order.mq.DelayTime; @@ -25,6 +27,7 @@ import com.yohoufo.order.mq.DelayTime;
25 import com.yohoufo.order.service.AbsSellerOrderViewService; 27 import com.yohoufo.order.service.AbsSellerOrderViewService;
26 import com.yohoufo.order.service.IOrderDetailService; 28 import com.yohoufo.order.service.IOrderDetailService;
27 import com.yohoufo.order.service.cache.OrderCacheService; 29 import com.yohoufo.order.service.cache.OrderCacheService;
  30 +import com.yohoufo.order.service.handler.BuyerCancelCompensateComputeHandler;
28 import com.yohoufo.order.service.impl.processor.SellerOrderPrepareProcessor; 31 import com.yohoufo.order.service.impl.processor.SellerOrderPrepareProcessor;
29 import com.yohoufo.order.service.proxy.DeliveryMinutesService; 32 import com.yohoufo.order.service.proxy.DeliveryMinutesService;
30 import com.yohoufo.order.service.proxy.ProductProxyService; 33 import com.yohoufo.order.service.proxy.ProductProxyService;
@@ -87,10 +90,12 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I @@ -87,10 +90,12 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I
87 @Autowired 90 @Autowired
88 private SellerOrderPrepareProcessor sellerOrderPrepareProcessor; 91 private SellerOrderPrepareProcessor sellerOrderPrepareProcessor;
89 92
90 -  
91 @Autowired 93 @Autowired
92 private OrderOverTimeService orderOverTimeService; 94 private OrderOverTimeService orderOverTimeService;
93 95
  96 + @Autowired
  97 + private BuyerCancelCompensateComputeHandler buyerCancelCompensateComputeHandler;
  98 +
94 private static List<SkupStatus> noNeedShowOrderCode = Arrays.asList(SkupStatus.CAN_NOT_SELL,SkupStatus.CAN_SELL, 99 private static List<SkupStatus> noNeedShowOrderCode = Arrays.asList(SkupStatus.CAN_NOT_SELL,SkupStatus.CAN_SELL,
95 SkupStatus.SELF_CANCEL_PAY, SkupStatus.TIMEOUT_CANCEL, 100 SkupStatus.SELF_CANCEL_PAY, SkupStatus.TIMEOUT_CANCEL,
96 SkupStatus.SELLER_CANCEL_SELL, SkupStatus.YOHO_CANCEL_SELL); 101 SkupStatus.SELLER_CANCEL_SELL, SkupStatus.YOHO_CANCEL_SELL);
@@ -386,11 +391,9 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I @@ -386,11 +391,9 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I
386 OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail.builder() 391 OrderDetailInfo.StatusDetail statusDetail = OrderDetailInfo.StatusDetail.builder()
387 .status(orderStatus.getCode()) 392 .status(orderStatus.getCode())
388 .statuStr(orderStatus.getStatusStr(tabType)) 393 .statuStr(orderStatus.getStatusStr(tabType))
389 - .detailDesc(orderStatus.getDetailDesc(tabType))  
390 .build(); 394 .build();
391 395
392 if(orderStatus.getCode() == OrderStatus.HAS_PAYED.getCode() || orderStatus.getCode() == OrderStatus.SEND_OUT_TIMEOUT.getCode()){ 396 if(orderStatus.getCode() == OrderStatus.HAS_PAYED.getCode() || orderStatus.getCode() == OrderStatus.SEND_OUT_TIMEOUT.getCode()){
393 - //TimeoutBo timeoutBo = ordersPayService.getDeliverLeftTime(buyerOrder.getUid(), buyerOrder.getOrderCode());  
394 397
395 //orderOverTimeService 398 //orderOverTimeService
396 OrderOverTime orderOverTime = Optional.ofNullable(buyerOrder.getOrderCode()).map(orderOverTimeService::selectByOrderCode).orElse(null); 399 OrderOverTime orderOverTime = Optional.ofNullable(buyerOrder.getOrderCode()).map(orderOverTimeService::selectByOrderCode).orElse(null);
@@ -405,20 +408,7 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I @@ -405,20 +408,7 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I
405 } 408 }
406 } 409 }
407 OrderAttributes oa = OrderAttributes.getOrderAttributes(buyerOrder.getAttributes()); 410 OrderAttributes oa = OrderAttributes.getOrderAttributes(buyerOrder.getAttributes());
408 - /*  
409 - if(orderStatus == OrderStatus.HAS_PAYED){  
410 - Integer deliverLeftTime = getDeliverLeftTime(buyerOrder.getUid(), buyerOrder.getOrderCode(), buyerOrder.getStatus(), oa);  
411 - if (deliverLeftTime != null){  
412 - statusDetail.setLeftTime(deliverLeftTime);  
413 - }  
414 - }  
415 - if(orderStatus == OrderStatus.WAITING_PAY){  
416 - Integer leftTime = getLeftTime(tabType,buyerOrder.getUid(), buyerOrder.getOrderCode(),  
417 - orderStatus.getCode(), buyerOrder.getCreateTime(), oa);  
418 - if (Objects.nonNull(leftTime)){  
419 - statusDetail.setLeftTime(leftTime);  
420 - }  
421 - }*/ 411 +
422 Integer buyerUid = buyerOrder.getUid(); 412 Integer buyerUid = buyerOrder.getUid();
423 Long orderCode = buyerOrder.getOrderCode(); 413 Long orderCode = buyerOrder.getOrderCode();
424 int orderStatusCode = orderStatus.getCode(); 414 int orderStatusCode = orderStatus.getCode();
@@ -430,9 +420,26 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I @@ -430,9 +420,26 @@ public class SellerOrderDetailService extends AbsOrderDetailService implements I
430 if(ActionStatusHold.getSellerShowExpressStatusList().contains(orderStatus.getCode())){ 420 if(ActionStatusHold.getSellerShowExpressStatusList().contains(orderStatus.getCode())){
431 statusDetail.setExpressShow(true); 421 statusDetail.setExpressShow(true);
432 } 422 }
  423 + //.detailDesc(orderStatus.getDetailDesc(tabType))
  424 + String detailDesc = formatDetailDesc(buyerOrder, orderStatus, tabType);
  425 +
  426 + statusDetail.setDetailDesc(detailDesc);
433 return statusDetail; 427 return statusDetail;
434 } 428 }
435 429
  430 + private String formatDetailDesc(BuyerOrder buyerOrder,OrderStatus orderStatus, TabType tabType){
  431 + String detailDesc = orderStatus.getDetailDesc(tabType);
  432 + if (Objects.nonNull(orderStatus)
  433 + && (OrderStatus.BUYER_CANCEL_BEFORE_SELLER_DELIVER.equals(orderStatus)
  434 + || OrderStatus.BUYER_CANCEL_BEFORE_DEPOT_RECEIVE.equals(orderStatus))){
  435 + BuyerPenaltyCalResult bpcr ;
  436 + final OrderStatus targetStatus = orderStatus;
  437 + bpcr = buyerCancelCompensateComputeHandler.calBuyerPenaltyCalResult(buyerOrder, targetStatus);
  438 + detailDesc = String.format(detailDesc, BigDecimalHelper.halfUp(bpcr.getPenaltyAmount()).doubleValue());
  439 + }
  440 + return detailDesc;
  441 + }
  442 +
436 @Override 443 @Override
437 protected void resetDynamicProporties(OrderDetailInfo orderDetailInfo) { 444 protected void resetDynamicProporties(OrderDetailInfo orderDetailInfo) {
438 Long orderCode = orderDetailInfo.getOrderCode(); 445 Long orderCode = orderDetailInfo.getOrderCode();
@@ -188,6 +188,9 @@ public class InBoxFacade { @@ -188,6 +188,9 @@ public class InBoxFacade {
188 }); 188 });
189 189
190 } 190 }
  191 + private String replaceSMSContent(InboxBusinessTypeEnum ibte, Object... params){
  192 + return getReplacedContent(ibte.getContent(), params);
  193 + }
191 194
192 private String getReplacedContent(String content ,Object... params) { 195 private String getReplacedContent(String content ,Object... params) {
193 return MessageFormatter.arrayFormat(content, params).getMessage(); 196 return MessageFormatter.arrayFormat(content, params).getMessage();
@@ -1075,6 +1078,45 @@ public class InBoxFacade { @@ -1075,6 +1078,45 @@ public class InBoxFacade {
1075 } 1078 }
1076 } 1079 }
1077 1080
  1081 + /**
  1082 + * 买家在24小时内取消预售
  1083 + * 站内:您的商品「商品名称」「尺码」,已被买家取消,您出售的商品已下架,保证金将于1个工作日内退回您的账户。
  1084 + * 短信:买家已取消订单,订单编号{}。您的商品「商品名称」已下架,更多信息请查看Yoho!Buy有货APP [我的-球鞋交易-出售]。
  1085 + */
  1086 + public void noticeSellerWhenBuyerCancelNoResponsibility(SellerOrderGoods sog, long orderCode){
  1087 +
  1088 + Integer sellerUid = sog.getUid();
  1089 + String prdName = sog.getProductName();
  1090 + String sizeName = sog.getSizeName();
  1091 + try {
  1092 + executorService.execute(()->{
  1093 + InboxBusinessTypeEnum ibt = InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY;
  1094 + String params = buildParams(prdName, sizeName, orderCode);
  1095 + InboxReqVO req = buildInboxReqVO(sellerUid, params, ibt);
  1096 +
  1097 + InBoxResponse resp = inBoxSDK.addInbox(req);
  1098 + logger.info("record noticeSellerWhenBuyerCancelNoResponsibility to seller inbox msg, sellerUid {}, orderCode {},prdName {} resp {}",
  1099 + sellerUid, orderCode,prdName, resp);
  1100 +
  1101 + //短信
  1102 + String phone = userProxyService.getMobile(sellerUid);
  1103 + if (StringUtils.isBlank(phone)){
  1104 + logger.warn("in noticeSellerWhenBuyerCancelNoResponsibility sms fail, sellerUid {} orderCode {} prdName {}", sellerUid, orderCode,prdName);
  1105 + return;
  1106 + }
  1107 + List<String> mobileList = Arrays.asList(phone);
  1108 +
  1109 + String content = replaceSMSContent(InboxBusinessTypeEnum.SMS_NOTICE_SELLER_WHEN_BUYER_CANCEL_NO_RESPONSIBILITY, orderCode, prdName);
  1110 + sendSmsService.smsSendByMobile(content,mobileList);
  1111 + logger.info("record noticeSellerWhenBuyerCancelNoResponsibility inbox sms msg, sellerUid {}, orderCode {},prdName {}",
  1112 + sellerUid, orderCode, prdName);
  1113 + });
  1114 + } catch (Exception e) {
  1115 + logger.warn("InBoxFacade noticeSellerWhenBuyerCancelNoResponsibility error inbox msg, sellerUid {}, orderCode {} ,prdName {}",
  1116 + sellerUid, orderCode, prdName, e);
  1117 + }
  1118 + }
  1119 +
1078 public void buyerCancelBeforeSellerDeliver(int buyerUid, long orderCode,String compesant, SellerOrderGoods sog) { 1120 public void buyerCancelBeforeSellerDeliver(int buyerUid, long orderCode,String compesant, SellerOrderGoods sog) {
1079 Integer sellerUid = sog.getUid(); 1121 Integer sellerUid = sog.getUid();
1080 String prdName = sog.getProductName(); 1122 String prdName = sog.getProductName();
@@ -1103,8 +1145,6 @@ public class InBoxFacade { @@ -1103,8 +1145,6 @@ public class InBoxFacade {
1103 return; 1145 return;
1104 } 1146 }
1105 List<String> mobileList = Arrays.asList(phone); 1147 List<String> mobileList = Arrays.asList(phone);
1106 - //SmsContentEnum smsIbt=SmsContentEnum.SMS_CLOSED_PLATFORM;  
1107 - //String content=smsIbt.getReplacedContent(prdName);  
1108 1148
1109 String content= getReplacedContent(InboxBusinessTypeEnum.SMS_CANCELED_BY_BUYER_AFTER_PAID.getContent(),orderCode,prdName); 1149 String content= getReplacedContent(InboxBusinessTypeEnum.SMS_CANCELED_BY_BUYER_AFTER_PAID.getContent(),orderCode,prdName);
1110 sendSmsService.smsSendByMobile(content,mobileList); 1150 sendSmsService.smsSendByMobile(content,mobileList);
@@ -599,7 +599,8 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ @@ -599,7 +599,8 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{
599 String headIcon = profileInfo.getHead_ico(); 599 String headIcon = profileInfo.getHead_ico();
600 if(DEFAULT_HEAD_IMG.equals(headIcon) || StringUtils.isBlank(headIcon)){//有货的默认头像 600 if(DEFAULT_HEAD_IMG.equals(headIcon) || StringUtils.isBlank(headIcon)){//有货的默认头像
601 //ufo 用户的默认头像 601 //ufo 用户的默认头像
602 - headIcon = configReader.getString("ufo.product.defaultUserHeadIcon", "http://img11.static.yhbimg.com/goodsimg/2019/02/26/16/01f05294027c419a10bb4a941cae257692.png?imageView2/{mode}/w/{width}/h/{height}"); 602 +// headIcon = configReader.getString("ufo.product.defaultUserHeadIcon", "http://img12.static.yhbimg.com/article/2019/02/26/16/02456ade977d8dfdbc4ca548b196c1d62b.png?imageView2/{mode}/w/{width}/h/{height}");
  603 + headIcon = "http://img12.static.yhbimg.com/article/2019/02/26/16/02456ade977d8dfdbc4ca548b196c1d62b.png?imageView2/{mode}/w/{width}/h/{height}";
603 } 604 }
604 track.setHeadIcon(headIcon); 605 track.setHeadIcon(headIcon);
605 606
@@ -631,7 +632,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ @@ -631,7 +632,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{
631 int authTime = identifyRecord.getAuthTime(); 632 int authTime = identifyRecord.getAuthTime();
632 identifyTrack.setTime(authTime); 633 identifyTrack.setTime(authTime);
633 identifyTrack.setTimeStr(formatDate(authTime, "yyyy.MM.dd HH:mm:ss")); 634 identifyTrack.setTimeStr(formatDate(authTime, "yyyy.MM.dd HH:mm:ss"));
634 - identifyTrack.setContent(authGroup + "鉴定结果为\"真\""); 635 + identifyTrack.setContent(authGroup.substring(0, 7) + "鉴定结果为\"真\"");
635 identifyTrack.setType(MESSAGE_TYPE_JUDGE_INFO); 636 identifyTrack.setType(MESSAGE_TYPE_JUDGE_INFO);
636 //鉴定中心,默认的展示头像 637 //鉴定中心,默认的展示头像
637 String authIco = configReader.getString("ufo.product.defaultAuthHeadIcon", "http://head.static.yhbimg.com/yhb-head/2018/12/28/14/01384244a3ca86fa5345df87c59317b81f.png?imageView2/{mode}/w/{width}/h/{height}"); 638 String authIco = configReader.getString("ufo.product.defaultAuthHeadIcon", "http://head.static.yhbimg.com/yhb-head/2018/12/28/14/01384244a3ca86fa5345df87c59317b81f.png?imageView2/{mode}/w/{width}/h/{height}");
@@ -660,7 +661,8 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ @@ -660,7 +661,8 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{
660 String headIcon = profileMap.get(toUid).getHead_ico(); 661 String headIcon = profileMap.get(toUid).getHead_ico();
661 if(DEFAULT_HEAD_IMG.equals(headIcon) || StringUtils.isBlank(headIcon)){//有货的默认头像 662 if(DEFAULT_HEAD_IMG.equals(headIcon) || StringUtils.isBlank(headIcon)){//有货的默认头像
662 //ufo 用户的默认头像 663 //ufo 用户的默认头像
663 - headIcon = configReader.getString("ufo.product.defaultUserHeadIcon", "http://img11.static.yhbimg.com/goodsimg/2019/02/26/16/01f05294027c419a10bb4a941cae257692.png?imageView2/{mode}/w/{width}/h/{height}"); 664 +// headIcon = configReader.getString("ufo.product.defaultUserHeadIcon", "http://img12.static.yhbimg.com/article/2019/02/26/16/02456ade977d8dfdbc4ca548b196c1d62b.png?imageView2/{mode}/w/{width}/h/{height}");
  665 + headIcon = "http://img12.static.yhbimg.com/article/2019/02/26/16/02456ade977d8dfdbc4ca548b196c1d62b.png?imageView2/{mode}/w/{width}/h/{height}";
664 } 666 }
665 item.setHeadIcon(headIcon); 667 item.setHeadIcon(headIcon);
666 item.setType(MESSAGE_TYPE_EX_OWNER); 668 item.setType(MESSAGE_TYPE_EX_OWNER);