|
@@ -121,7 +121,8 @@ public class CpsPopularizeController {
|
|
|
if ("cc".equals(data.getOtherUrl())) {
|
|
if ("cc".equals(data.getOtherUrl())) {
|
|
|
data.setPopularizeLink(String.format(Constant.DISTRIBUTE_CLAUDE_CODE_CC_URL, data.getCode()));
|
|
data.setPopularizeLink(String.format(Constant.DISTRIBUTE_CLAUDE_CODE_CC_URL, data.getCode()));
|
|
|
}
|
|
}
|
|
|
- } else {
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ if (StrUtil.isEmpty(data.getPopularizeLink())) {
|
|
|
data.setPopularizeLink(String.format(envCommonService.DISTRIBUTE_DEFAULT_URL_PREFIX, data.getCode()));
|
|
data.setPopularizeLink(String.format(envCommonService.DISTRIBUTE_DEFAULT_URL_PREFIX, data.getCode()));
|
|
|
}
|
|
}
|
|
|
Optional.ofNullable(goodsDonMapper.selectById(data.getGoodsId())).ifPresent(goods -> {
|
|
Optional.ofNullable(goodsDonMapper.selectById(data.getGoodsId())).ifPresent(goods -> {
|