|
|
@@ -118,10 +118,14 @@ public class CpsPopularizeController {
|
|
|
SearchResult<UserDistributePopularizeView> search = beanSearcher.search(UserDistributePopularizeView.class, builder.build());
|
|
|
search.getDataList().forEach(data -> {
|
|
|
if (StrUtil.isNotBlank(data.getOtherUrl())) {
|
|
|
- if ("cc".equals(data.getOtherUrl())) {
|
|
|
+ if (Constant.CC_DISTRIBUTE_MARK.equals(data.getOtherUrl())) {
|
|
|
data.setPopularizeLink(String.format(Constant.DISTRIBUTE_CLAUDE_CODE_CC_URL, data.getCode()));
|
|
|
//对应优惠码
|
|
|
data.setCouponCode(couponDistributePopularizeMapper.getCouponCodeByUid(cpsUserId, Constant.DISTRIBUTE_CLAUDE_CODE_COUPON_ID));
|
|
|
+ } else if (Constant.NANO_DISTRIBUTE_MARK.equals(data.getOtherUrl())) {
|
|
|
+ data.setPopularizeLink(String.format(Constant.DISTRIBUTE_NANO_URL, data.getCode()));
|
|
|
+ //对应优惠码
|
|
|
+ data.setCouponCode(couponDistributePopularizeMapper.getCouponCodeByUid(cpsUserId, Constant.DISTRIBUTE_NANO_COUPON_ID));
|
|
|
}
|
|
|
}
|
|
|
if (StrUtil.isEmpty(data.getPopularizeLink())) {
|