|
|
@@ -27,6 +27,7 @@ import com.webflux.launchadmin.mysql.service.planNew.structure.Item;
|
|
|
import com.webflux.launchadmin.mysql.service.readBookPlan.ReadBookPlanServicesInterface;
|
|
|
import com.webflux.launchadmin.mysql.service.sourceMaterial.materialManagement.MaterialManagementInterface;
|
|
|
import com.webflux.launchadmin.mysql.service.takeaway.TakeawayServicesInterface;
|
|
|
+import com.webflux.launchadmin.utils.RandomStr;
|
|
|
import com.webflux.launchcommon.returnObj.RStatus;
|
|
|
import com.webflux.launchcommon.utils.StringUtils;
|
|
|
import jakarta.annotation.Resource;
|
|
|
@@ -496,8 +497,11 @@ public class PlanNewCommonOutController {
|
|
|
return this.getFriendPlan(request);
|
|
|
} else if (4 == request.getTypePlan()) {
|
|
|
return this.getTakeaway(request);
|
|
|
+ }else{
|
|
|
+ // 交友裂变
|
|
|
+ return this.getFriendPlan(request);
|
|
|
}
|
|
|
- throw new BaseException("typePlan 类型错误");
|
|
|
+ // throw new BaseException("typePlan 类型错误");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -520,7 +524,7 @@ public class PlanNewCommonOutController {
|
|
|
.onErrorResume(throwable -> Mono.error(new BaseException("transferPageDomain 域名查詢為空 group_type_id:::" + f.transferPageDomain()))).collectList().flatMap(fff -> {
|
|
|
if (!fff.isEmpty()) {
|
|
|
DomainSelect domainSelect = fff.get(RandomUtil.randomInt(0, fff.size()));
|
|
|
- String string = RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 6);
|
|
|
+ String string = RandomStr.getRandomStr(request.getCode());
|
|
|
String domain1 = domainSelect.domain();
|
|
|
return Mono.just(string + "." + domain1);
|
|
|
|
|
|
@@ -542,7 +546,7 @@ public class PlanNewCommonOutController {
|
|
|
.onErrorResume(throwable -> Mono.error(new BaseException("backgroupDomain 域名查询为空 group_type_id" + f.backgroupDomain()))).collectList().flatMap(fff -> {
|
|
|
if (!fff.isEmpty()) {
|
|
|
DomainSelect domainSelect = fff.get(RandomUtil.randomInt(0, fff.size()));
|
|
|
- String string = RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 6);
|
|
|
+ String string = RandomStr.getRandomStr(request.getCode());
|
|
|
String domain1 = domainSelect.domain();
|
|
|
return Mono.just(string + "." + domain1);
|
|
|
} else {
|
|
|
@@ -562,7 +566,7 @@ public class PlanNewCommonOutController {
|
|
|
// DomainSelectRes domainSelectRes = new DomainSelectRes();
|
|
|
int i = RandomUtil.randomInt(0, fm.size());
|
|
|
String domain = fm.get(i).domain();
|
|
|
- String string = RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 6);
|
|
|
+ String string = RandomStr.getRandomStr(request.getCode());
|
|
|
return Mono.just(string + "." + domain);
|
|
|
});
|
|
|
return Mono.zip(stringMono2, stringMono1, stringMono).flatMap(fff -> {
|
|
|
@@ -597,7 +601,7 @@ public class PlanNewCommonOutController {
|
|
|
DomainSelectRes domainSelectRes = new DomainSelectRes();
|
|
|
int i = RandomUtil.randomInt(0, fm.size());
|
|
|
String domain = fm.get(i).domain();
|
|
|
- String string = RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 6);
|
|
|
+ String string = RandomStr.getRandomStr(request.getCode());
|
|
|
domainSelectRes.setDomain(string + "." + domain);
|
|
|
domainSelectRes.setPath("");
|
|
|
domainSelectRes.setUnique(IdUtil.fastSimpleUUID());
|
|
|
@@ -624,7 +628,7 @@ public class PlanNewCommonOutController {
|
|
|
.collectList().flatMap(fm -> {
|
|
|
int i = RandomUtil.randomInt(0, fm.size());
|
|
|
String domain = fm.get(i).domain();
|
|
|
- String string = RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 6);
|
|
|
+ String string = RandomStr.getRandomStr(request.getCode());
|
|
|
return Mono.just(string + "." + domain);
|
|
|
});
|
|
|
}
|
|
|
@@ -639,7 +643,7 @@ public class PlanNewCommonOutController {
|
|
|
.onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage()))).collectList().flatMap(fff -> {
|
|
|
if (!fff.isEmpty()) {
|
|
|
DomainSelect domainSelect = fff.get(RandomUtil.randomInt(0, fff.size()));
|
|
|
- String string = RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 6);
|
|
|
+ String string = RandomStr.getRandomStr(request.getCode());
|
|
|
String domain1 = domainSelect.domain();
|
|
|
return Mono.just(string + "." + domain1);
|
|
|
} else {
|
|
|
@@ -660,7 +664,7 @@ public class PlanNewCommonOutController {
|
|
|
.onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage()))).collectList().flatMap(fff -> {
|
|
|
if (!fff.isEmpty()) {
|
|
|
DomainSelect domainSelect = fff.get(RandomUtil.randomInt(0, fff.size()));
|
|
|
- String string = RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 6);
|
|
|
+ String string = RandomStr.getRandomStr(request.getCode());
|
|
|
String domain1 = domainSelect.domain();
|
|
|
return Mono.just(string + "." + domain1);
|
|
|
} else {
|
|
|
@@ -697,7 +701,7 @@ public class PlanNewCommonOutController {
|
|
|
.collectList().flatMap(fm -> {
|
|
|
int i = RandomUtil.randomInt(0, fm.size());
|
|
|
String domain = fm.get(i).domain();
|
|
|
- String string = RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 6);
|
|
|
+ String string = RandomStr.getRandomStr(request.getCode());
|
|
|
return Mono.just(string + "." + domain);
|
|
|
});
|
|
|
}
|
|
|
@@ -764,8 +768,8 @@ public class PlanNewCommonOutController {
|
|
|
Mono<List<Ad>> adtop ;
|
|
|
if (Objects.nonNull(request.getTopAdvBl()) && request.getTopAdvBl()) {
|
|
|
if(6==plan.type()){
|
|
|
- adtop = template.select(Query.query(Criteria.where("type").is(1) //.and("group_type_id").is(plan.groupId())
|
|
|
- .and("deleted_at").isNull()).columns("id,name,type,image,show_beg_at,show_end_at,link".split(",")), Ad.class)
|
|
|
+ adtop = template.select(Query.query(Criteria.where("type").is(1).and("group_type_id").is(plan.groupId())
|
|
|
+ .and("deleted_at").isNull()).columns("id,name,type,image,show_beg_at,show_end_at,link,redirect_type,plan_type,plan_id,group_type_id".split(",")), Ad.class)
|
|
|
.switchIfEmpty(Mono.error(new BaseException(StrUtil.format("通过计划营销分类:{};查询顶部广告返回结果为空",plan.groupId()))))
|
|
|
.onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage()+"4")))
|
|
|
.collectList();////广告类型1顶部2底部3返回4安卓,ios的返回
|
|
|
@@ -775,15 +779,14 @@ public class PlanNewCommonOutController {
|
|
|
.onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage()+"4")))
|
|
|
.collectList();////广告类型1顶部2底部3返回4安卓,ios的返回
|
|
|
}
|
|
|
-
|
|
|
}else {
|
|
|
adtop=Mono.just(List.of());
|
|
|
}
|
|
|
Mono<List<Ad>> adBottom ;
|
|
|
if (Objects.nonNull(request.getBottomAdvBl()) && request.getBottomAdvBl()) {
|
|
|
if (6 == plan.type()) {
|
|
|
- adBottom = template.select(Query.query(Criteria.where("type").is(2) //.and("group_type_id").is(plan.groupId())
|
|
|
- .and("deleted_at").isNull()).columns("id,name,type,image,show_beg_at,show_end_at,link".split(",")), Ad.class)
|
|
|
+ adBottom = template.select(Query.query(Criteria.where("type").is(2).and("group_type_id").is(plan.groupId())
|
|
|
+ .and("deleted_at").isNull()).columns("id,name,type,image,show_beg_at,show_end_at,link,redirect_type,plan_type,plan_id,group_type_id".split(",")), Ad.class)
|
|
|
.switchIfEmpty(Mono.error(new BaseException(StrUtil.format("通过计划营销分类:{};查询底部广告返回结果为空",plan.groupId()))))
|
|
|
.onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage()+"4")))
|
|
|
.collectList();////广告类型1顶部2底部3返回4安卓,ios的返回
|
|
|
@@ -837,7 +840,7 @@ public class PlanNewCommonOutController {
|
|
|
, null, null, null, null, null, null, null, null, null));
|
|
|
if (!t6.isEmpty()) {
|
|
|
Ad ad = t6.get(RandomUtil.randomInt(0, t6.size()));
|
|
|
- if(6==plan.type() && Objects.nonNull(request.getTopAdvBl()) && request.getTopAdvBl()){
|
|
|
+ if(6==plan.type() && Objects.nonNull(request.getBottomAdvBl()) && request.getBottomAdvBl()){
|
|
|
if (Objects.nonNull(ad.redirectType()) && ad.redirectType() == 1 && Objects.nonNull(ad.planId())&& Objects.nonNull(ad.planType())) {
|
|
|
Mono<String> byCodeGetImportDomainResMono = getByCodeGetImportDomainResMono(ad.planId(), ad.planType()).switchIfEmpty(Mono.just(""));
|
|
|
adMono = Mono.zip(Mono.just(ad), byCodeGetImportDomainResMono).flatMap(tuple -> {
|
|
|
@@ -859,7 +862,7 @@ public class PlanNewCommonOutController {
|
|
|
});
|
|
|
Mono<List<AlbumReq>> albumList = Mono.just(List.of());
|
|
|
if (Objects.nonNull(request.getAlbumNum()) && 0 != request.getAlbumNum()) {
|
|
|
- Mono<List<Long>> album_id = template.select(Query.query(Criteria.empty()).columns("album_id"), Album.class).flatMap(album -> Mono.just(album.albumId())).collectList();
|
|
|
+ Mono<List<Long>> album_id = template.select(Query.query(Criteria.where("group_id").is(plan.groupId())).columns("album_id"), Album.class).flatMap(album -> Mono.just(album.albumId())).collectList();
|
|
|
albumList = album_id.flatMap(lists -> {
|
|
|
if (lists.isEmpty() || lists.size() < request.getAlbumNum()) {
|
|
|
return Mono.error(new BaseException(StrUtil.format("相册素材数:{};计划要求素材数:{} 不匹配", lists.size(), request.getAlbumNum())));
|
|
|
@@ -867,7 +870,7 @@ public class PlanNewCommonOutController {
|
|
|
List<Long> longs = new ArrayList<>();
|
|
|
for (int i = 0; i < request.getAlbumNum(); i++) {
|
|
|
List<Long> collect = lists.stream().filter(f -> !longs.contains(f)).collect(Collectors.toList());
|
|
|
- Long aLong = collect.get(RandomUtil.randomInt(0, lists.size()));
|
|
|
+ Long aLong = collect.get(RandomUtil.randomInt(0, collect.size()));
|
|
|
longs.add(aLong);
|
|
|
}
|
|
|
Mono<List<AlbumReq>> listMono = Flux.fromIterable(longs).flatMap(id -> {
|
|
|
@@ -900,12 +903,88 @@ public class PlanNewCommonOutController {
|
|
|
}
|
|
|
return Mono.just(materialRes);
|
|
|
});
|
|
|
- return Mono.zip(planNewCommonMaterialResMono,albumList).flatMap(tuple->{
|
|
|
+
|
|
|
+ Mono<List<DuanjuMaterialRes>> duanju = Mono.just(List.of());
|
|
|
+ Mono<List<H5ImageAndText>> kefu = Mono.just(List.of());
|
|
|
+ if (plan.type() == 8 &&Objects.nonNull(request.getImageAndTxtNum())&& request.getImageAndTxtNum() > 0) {
|
|
|
+ Mono<List<Image>> image = template.select(Query.query(Criteria.where("type").is(5)
|
|
|
+ .and("deleted_at").isNull()
|
|
|
+ .and("group_type_id").is(plan.groupId())), Image.class)
|
|
|
+ .collectList()
|
|
|
+ .switchIfEmpty(Mono.error(new BaseException(StrUtil.format("通过计划groupId:{}查询Image返回结构为空", plan.groupId()))))
|
|
|
+ .onErrorResume(throwable ->
|
|
|
+ Mono.error(new BaseException(StrUtil.format("通过计划groupId:{}查询Image返回结果error:{}", plan.groupId(), LogExceptionStackTrace.erroStackTrace(throwable).toString()))));
|
|
|
+ Mono<List<Material>> text = template.select(Query.query(Criteria.where("type").is(11)
|
|
|
+ .and("group_type_id").is(plan.groupId())
|
|
|
+ .and("deleted_at").isNull()), Material.class)
|
|
|
+ .switchIfEmpty(Mono.error(new BaseException(StrUtil.format("通过计划groupId:{}查询Material返回结构为空", plan.groupId()))))
|
|
|
+ .onErrorResume(throwable ->
|
|
|
+ Mono.error(new BaseException(StrUtil.format("通过计划groupId:{}查询Material返回结果error:{}", plan.groupId(), LogExceptionStackTrace.erroStackTrace(throwable).toString()))))
|
|
|
+ .collectList();
|
|
|
+ kefu = Mono.zip(Mono.just(plan), image, text).flatMap(f -> {
|
|
|
+ int integer = request.getImageAndTxtNum();
|
|
|
+ List<Image> t3 = f.getT2();
|
|
|
+ List<Material> t4 = f.getT3();
|
|
|
+ if (t3.size() < integer || t4.size() < integer) {
|
|
|
+ return Mono.error(new BaseException("客服列表图片或文字素材数量小于计划设置数"));
|
|
|
+ }
|
|
|
+ ArrayList<Long> listImg = new ArrayList<>();
|
|
|
+ ArrayList<Long> listTxt = new ArrayList<>();
|
|
|
+ List<H5ImageAndText> h5ImageAndTexts = new ArrayList<>();
|
|
|
+ IntStream.range(0, integer).forEach(i -> {
|
|
|
+ H5ImageAndText h5ImageAndText = new H5ImageAndText();
|
|
|
+ List<Image> collect = t3.stream().filter(fff -> !listImg.contains(fff.id())).toList();
|
|
|
+ if (!collect.isEmpty()) {
|
|
|
+ Image image1 = collect.get(RandomUtil.randomInt(0, collect.size()));
|
|
|
+ listImg.add(image1.id());
|
|
|
+ h5ImageAndText.setImage(image1.image());
|
|
|
+ }
|
|
|
+ List<Material> collect1 = t4.stream().filter(fff -> !listTxt.contains(fff.id())).toList();
|
|
|
+ if (!collect1.isEmpty()) {
|
|
|
+ Material material = collect1.get(RandomUtil.randomInt(0, collect1.size()));
|
|
|
+ listTxt.add(material.id());
|
|
|
+ h5ImageAndText.setName(material.content());
|
|
|
+ h5ImageAndText.setRemark(material.remark());
|
|
|
+ }
|
|
|
+ h5ImageAndTexts.add(h5ImageAndText);
|
|
|
+ });
|
|
|
+ return Mono.just(h5ImageAndTexts);
|
|
|
+ });
|
|
|
+ duanju= template.select(Query.query(Criteria.where("group_type_id").is(plan.groupId()).and("deleted_at").isNull()),DuanjuMaterial.class)
|
|
|
+ .switchIfEmpty(Mono.error(new BaseException(StrUtil.format("通过计划groupId:{}查询DuanjuMaterial返回结构为空", plan.groupId()))))
|
|
|
+ .onErrorResume(throwable ->
|
|
|
+ Mono.error(new BaseException(StrUtil.format("通过计划groupId:{}查询DuanjuMaterial返回结果error:{}", plan.groupId(),
|
|
|
+ LogExceptionStackTrace.erroStackTrace(throwable).toString()))))
|
|
|
+ .collectList().flatMap(list->{
|
|
|
+ if (list.size() < request.getImageAndTxtNum()) {
|
|
|
+ return Mono.error(new BaseException("短剧素材数量小于计划设置数"));
|
|
|
+ }
|
|
|
+ ArrayList<Long> listImg = new ArrayList<>();
|
|
|
+ List<DuanjuMaterialRes> dJ = new ArrayList<>();
|
|
|
+ IntStream.range(0, request.getImageAndTxtNum()).forEach(i -> {
|
|
|
+ DuanjuMaterialRes duanjuMaterialRes = new DuanjuMaterialRes();
|
|
|
+ List<DuanjuMaterial> collect = list.stream().filter(fff -> !listImg.contains(fff.id())).toList();
|
|
|
+ if (!collect.isEmpty()) {
|
|
|
+ DuanjuMaterial duanjuMaterial = collect.get(RandomUtil.randomInt(0, collect.size()));
|
|
|
+ listImg.add(duanjuMaterial.id());
|
|
|
+ duanjuMaterialRes.setImage(duanjuMaterial.thumb());
|
|
|
+ duanjuMaterialRes.setTag(duanjuMaterial.tag());
|
|
|
+ duanjuMaterialRes.setName(duanjuMaterial.title());
|
|
|
+ }
|
|
|
+ dJ.add(duanjuMaterialRes);
|
|
|
+ });
|
|
|
+ return Mono.just(dJ);
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ return Mono.zip(planNewCommonMaterialResMono,albumList,duanju,kefu).flatMap(tuple->{
|
|
|
List<AlbumReq> t2 = tuple.getT2();
|
|
|
PlanNewCommonMaterialRes t1 = tuple.getT1();
|
|
|
if(!t2.isEmpty()){
|
|
|
t1.setAlbumList(t2);
|
|
|
}
|
|
|
+ t1.setDJs(tuple.getT3());
|
|
|
+ t1.setImages(tuple.getT4());
|
|
|
return Mono.just(t1);
|
|
|
});
|
|
|
});
|
|
|
@@ -974,9 +1053,11 @@ public class PlanNewCommonOutController {
|
|
|
// 交友裂变无清水分类
|
|
|
isQs = false;
|
|
|
}
|
|
|
- if (Objects.nonNull(request.getRedirectType()) && request.getRedirectType() == 2) {
|
|
|
+ if (Objects.nonNull(request.getRedirectType()) && request.getRedirectType() == 2 ) {
|
|
|
stringBuilderMono = goGenerateService.byPlanNewIdGetUrlCommon(request.getRedirectPlanId(), isQs, request.getGroupIdQs());
|
|
|
- } else {
|
|
|
+ } else if(7 == plan.type()){
|
|
|
+ stringBuilderMono = Mono.just(new StringBuilder(request.getLink() == null ? "空" : request.getLink()));
|
|
|
+ }else {
|
|
|
stringBuilderMono = Mono.just(new StringBuilder(request.getLink() == null ? "" : request.getLink()));
|
|
|
}
|
|
|
Mono<PlanNewCommon> code = Mono.just(plan);
|
|
|
@@ -1334,10 +1415,10 @@ public class PlanNewCommonOutController {
|
|
|
planId,
|
|
|
throwable.getMessage()))))
|
|
|
.flatMap(ff -> {
|
|
|
- Long groupId = ff.groupId();
|
|
|
- if (Objects.isNull(groupId)) {
|
|
|
- return Mono.error(new BaseException("查询common计划 groupId 值为 null"));
|
|
|
+ if (Objects.isNull(ff.importDomain())) {
|
|
|
+ return Mono.error(new BaseException("查询common计划 importDomain 值为 null"));
|
|
|
}
|
|
|
+ Long groupId = Long.valueOf(ff.importDomain());
|
|
|
if(Objects.nonNull(ff.type()) && 5==ff.type()){
|
|
|
String configJson = ff.configJson();
|
|
|
if(Objects.nonNull(configJson) ){
|
|
|
@@ -1359,8 +1440,15 @@ public class PlanNewCommonOutController {
|
|
|
//return Mono.just(new StringBuilder(s));
|
|
|
}
|
|
|
//saveRequest.setImportDomain(String.valueOf(saveRequest.getGroupId()));
|
|
|
+ return getDomainSetV(groupId, planId,2, ff.code(),false,false);
|
|
|
+ }else {
|
|
|
+ if (3 == ff.type() || 4==ff.type()) {
|
|
|
+ return getDomainSetV(groupId, planId,1, ff.code(),true,false);
|
|
|
+ }else {
|
|
|
+ return getDomainSetV(groupId, planId,1, ff.code(),false,false);
|
|
|
+ }
|
|
|
}
|
|
|
- return getDomainSetV(groupId, planId,2, ff.code());
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
private Mono<ByCodeGetImportDomainRes> getNewListeningNewPlan(String planId, Query query) {
|
|
|
@@ -1380,7 +1468,7 @@ public class PlanNewCommonOutController {
|
|
|
if (Objects.isNull(groupId)) {
|
|
|
return Mono.error(new BaseException("查询裂变计划 groupId 值为 null"));
|
|
|
}
|
|
|
- return getDomainSetV(groupId, planId,1, ff.code());
|
|
|
+ return getDomainSetV(groupId, planId,1, ff.code(),false,false);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
@@ -1407,11 +1495,11 @@ public class PlanNewCommonOutController {
|
|
|
}catch (Exception e){
|
|
|
return Mono.error(new BaseException("查询听书计划入口域名类型值解析错误"+e.getMessage()));
|
|
|
}
|
|
|
- return getDomainSetV(groupId, planId,1,ff.code());
|
|
|
+ return getDomainSetV(groupId, planId,1,ff.code(),false,true);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- private Mono<ByCodeGetImportDomainRes> getDomainSetV( Long groupId, String planId,Integer type,String code) {
|
|
|
+ private Mono<ByCodeGetImportDomainRes> getDomainSetV( Long groupId, String planId,Integer type,String code,boolean isFri,boolean isAddGroup) {
|
|
|
return template.select(Query.query(Criteria.where("group_type_id").is(groupId)
|
|
|
.and("status").is(1)
|
|
|
.and("type").is(type)
|
|
|
@@ -1433,18 +1521,22 @@ public class PlanNewCommonOutController {
|
|
|
if(!f2.isEmpty()){
|
|
|
DomainSelect domainSelect = f2.get(RandomUtil.randomInt(0, f2.size()));
|
|
|
stringBuilder.append("http://");
|
|
|
- stringBuilder.append(get6Str());
|
|
|
+ stringBuilder.append(get6Str(code));
|
|
|
stringBuilder.append(".");
|
|
|
stringBuilder.append(domainSelect.domain());
|
|
|
if(2==type){
|
|
|
stringBuilder.append("?code=");
|
|
|
+ }else if(isFri) {
|
|
|
+ stringBuilder.append("/portal-page/index?code=");
|
|
|
}else {
|
|
|
stringBuilder.append("/index.html?code=");
|
|
|
}
|
|
|
-
|
|
|
stringBuilder.append(code);
|
|
|
stringBuilder.append("&sk=");
|
|
|
stringBuilder.append(IdUtil.fastSimpleUUID());
|
|
|
+ if (isAddGroup) {
|
|
|
+ stringBuilder.append("&id=57");
|
|
|
+ }
|
|
|
}else {
|
|
|
return Mono.error(new BaseException(StrUtil.format("通过code:{},groupId:{};查询域名Error::{}",code,groupId,"错误")));
|
|
|
}
|
|
|
@@ -1453,8 +1545,8 @@ public class PlanNewCommonOutController {
|
|
|
return Mono.just(domain);
|
|
|
});
|
|
|
}
|
|
|
- private String get6Str() {
|
|
|
- return RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 6);
|
|
|
+ private String get6Str(String code) {
|
|
|
+ return RandomStr.getRandomStr(code);
|
|
|
}
|
|
|
|
|
|
|