...
|
...
|
@@ -129,19 +129,22 @@ public class ProductLimitUserHelpServiceImpl implements IProductLimitUserHelpSer |
|
|
helpUserSize = helpUserSize + 1;
|
|
|
}
|
|
|
}
|
|
|
//推送好友助力成功消息
|
|
|
try {
|
|
|
logger.info("ProductLimitUserHelpServiceImpl: push helpInfo message param : uid is {}, helpUserNum is {}, productName is {}, limitProductCode is {}",limitProductHelpUserRequestBO.getUserId(),
|
|
|
limitProductBo.getProductName(), helpUserSize, limitProductHelpUserRequestBO.getLimitProductCode());
|
|
|
SendMessageRspBo responseMessage = iSendLimitCodeMessage.assitSuccess(String.valueOf(limitProductHelpUserRequestBO.getUserId()),
|
|
|
limitProductBo.getProductName(), helpUserSize, limitProductHelpUserRequestBO.getLimitProductCode());
|
|
|
logger.info("ProductLimitUserHelpServiceImpl: push helpInfo message success, code is {}, message is {}",responseMessage.getCode(),responseMessage.getMessage());
|
|
|
}catch (Exception e){
|
|
|
logger.error("推送助力成功信息失败!", e);
|
|
|
}
|
|
|
|
|
|
logger.info("ProductLimitUserHelpServiceImpl :: addHelpUserInfo helpUserSize is: {}", helpUserSize);
|
|
|
Integer helpLimit = limitProductBo.getHelpLimit();
|
|
|
logger.info("ProductLimitUserHelpServiceImpl :: addHelpUserInfo helpLimit is: {}", helpLimit);
|
|
|
if(helpUserSize < helpLimit){
|
|
|
//推送好友助力成功消息
|
|
|
try {
|
|
|
logger.info("ProductLimitUserHelpServiceImpl: push helpInfo message param : uid is {}, helpUserNum is {}, productName is {}, limitProductCode is {}",limitProductHelpUserRequestBO.getUserId(),
|
|
|
limitProductBo.getProductName(), helpUserSize, limitProductHelpUserRequestBO.getLimitProductCode());
|
|
|
SendMessageRspBo responseMessage = iSendLimitCodeMessage.assitSuccess(String.valueOf(limitProductHelpUserRequestBO.getUserId()),
|
|
|
limitProductBo.getProductName(), helpUserSize, limitProductHelpUserRequestBO.getLimitProductCode());
|
|
|
logger.info("ProductLimitUserHelpServiceImpl: push helpInfo message success, code is {}, message is {}",responseMessage.getCode(),responseMessage.getMessage());
|
|
|
}catch (Exception e){
|
|
|
logger.error("推送助力成功信息失败!", e);
|
|
|
}
|
|
|
}
|
|
|
if (helpUserSize == helpLimit){
|
|
|
ProductLimitCodeReq limitCodeReq = new ProductLimitCodeReq();
|
|
|
limitCodeReq.setLimitProductCode(limitProductHelpUserRequestBO.getLimitProductCode());
|
...
|
...
|
|