|
|
@@ -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;
|
|
|
@@ -520,7 +521,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();
|
|
|
String domain1 = domainSelect.domain();
|
|
|
return Mono.just(string + "." + domain1);
|
|
|
|
|
|
@@ -542,7 +543,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();
|
|
|
String domain1 = domainSelect.domain();
|
|
|
return Mono.just(string + "." + domain1);
|
|
|
} else {
|
|
|
@@ -562,7 +563,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();
|
|
|
return Mono.just(string + "." + domain);
|
|
|
});
|
|
|
return Mono.zip(stringMono2, stringMono1, stringMono).flatMap(fff -> {
|
|
|
@@ -597,7 +598,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();
|
|
|
domainSelectRes.setDomain(string + "." + domain);
|
|
|
domainSelectRes.setPath("");
|
|
|
domainSelectRes.setUnique(IdUtil.fastSimpleUUID());
|
|
|
@@ -624,7 +625,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();
|
|
|
return Mono.just(string + "." + domain);
|
|
|
});
|
|
|
}
|
|
|
@@ -639,7 +640,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();
|
|
|
String domain1 = domainSelect.domain();
|
|
|
return Mono.just(string + "." + domain1);
|
|
|
} else {
|
|
|
@@ -660,7 +661,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();
|
|
|
String domain1 = domainSelect.domain();
|
|
|
return Mono.just(string + "." + domain1);
|
|
|
} else {
|
|
|
@@ -697,7 +698,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();
|
|
|
return Mono.just(string + "." + domain);
|
|
|
});
|
|
|
}
|
|
|
@@ -973,7 +974,7 @@ 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 {
|
|
|
stringBuilderMono = Mono.just(new StringBuilder(request.getLink() == null ? "" : request.getLink()));
|
|
|
@@ -1453,7 +1454,7 @@ public class PlanNewCommonOutController {
|
|
|
});
|
|
|
}
|
|
|
private String get6Str() {
|
|
|
- return RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 6);
|
|
|
+ return RandomStr.getRandomStr();
|
|
|
}
|
|
|
|
|
|
|