| | |
| | | recommendText = template.replace("[商品标题]", goods.getTitle()).replace("[销量]", |
| | | TaoBaoUtil.getSaleCount(taoBaoLink.getGoods().getBiz30day())); |
| | | if (StringUtil.isNullOrEmpty(goods.getDescription())) { |
| | | recommendText = recommendText.replace("推荐语:[推荐语]", ""); |
| | | recommendText = recommendText.replace("推荐理由:[推荐语]", ""); |
| | | } else { |
| | | recommendText = recommendText.replace("[推荐语]", goods.getDescription()); |
| | | recommendText = recommendText.replace("[推荐理由]", goods.getDescription()); |
| | | } |
| | | |
| | | String quickCommentText = configService.get(ConfigKeyEnum.quickShareTBCommentText.getKey()); |
| | |
| | | recommendText = template.replace("[商品标题]", jdGoods.getSkuName()).replace("[销量]", |
| | | JDUtil.getSaleCount(jdGoods.getInOrderCount30Days())); |
| | | // 无推荐语 |
| | | recommendText = recommendText.replace("推荐语:[推荐语]", ""); |
| | | recommendText = recommendText.replace("推荐理由:[推荐语]", ""); |
| | | |
| | | String quickCommentText = configService.get(ConfigKeyEnum.quickShareJDCommentText.getKey()); |
| | | commentText = quickCommentText.replace("[原价]", jdGoods.getPrice().toString()); |
| | |
| | | salesTip = "0"; |
| | | } |
| | | recommendText = recommendText.replace("[销量]", salesTip); |
| | | recommendText = recommendText.replace("推荐语:[推荐语]", ""); |
| | | recommendText = recommendText.replace("推荐理由:[推荐语]", ""); |
| | | |
| | | String quickCommentText = configService.get(ConfigKeyEnum.quickSharePDDCommentText.getKey()); |
| | | commentText = quickCommentText.replace("[原价]", MoneyBigDecimalUtil |