|
|
@@ -243,12 +243,14 @@ public class GoGenerateService {
|
|
|
|
|
|
Mono<String> stringMono = Mono.zip(bgImage, fmImage, text, stringBuilderMono,fm1,getStringBuilderMono(saveRequest)).flatMap(f -> {
|
|
|
List<StringBuilder> t4 = f.getT4();
|
|
|
-
|
|
|
- Optional<Image> first = f.getT1().stream().findFirst();
|
|
|
- //first.ifPresent(image -> goRequest.setBg_img_src(image.image()));
|
|
|
- if (goRequest.getIsRandom()) {
|
|
|
- first.ifPresent(image -> goRequest.setBg_img_src(image.image()));
|
|
|
+ if (Objects.nonNull(f.getT4()) && !f.getT4().isEmpty()) {
|
|
|
+ Optional<Image> first = f.getT1().stream().findFirst();
|
|
|
+ //first.ifPresent(image -> goRequest.setBg_img_src(image.image()));
|
|
|
+ if (goRequest.getIsRandom()) {
|
|
|
+ first.ifPresent(image -> goRequest.setBg_img_src(image.image()));
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
//封面
|
|
|
if( Objects.nonNull(f.getT5()) &&!f.getT5().isEmpty()) {
|
|
|
goRequest.getItem().stream().filter(ff -> "cover".equals(ff.getT()) && ff.getIsRandom()).findFirst()
|
|
|
@@ -270,7 +272,7 @@ public class GoGenerateService {
|
|
|
item.setName("客服二维码");
|
|
|
}
|
|
|
}
|
|
|
- }else if(Objects.nonNull(qsSetting.getStatus()) && qsSetting.getStatus()==0) {
|
|
|
+ }else if(Objects.nonNull(qsSetting.getStatus()) && qsSetting.getStatus()==0 ) {
|
|
|
StringBuilder t6 = f.getT6();
|
|
|
item.setV(t6.toString());
|
|
|
item.setName("H5二维码");
|
|
|
@@ -457,8 +459,6 @@ public class GoGenerateService {
|
|
|
.filter(ft -> ft.getPlanId()
|
|
|
.equals(f.planNewId()) && (Objects.isNull(ft.getV()) || "".equals(ft.getV()))).findFirst();
|
|
|
first.ifPresent(item -> item.setV(stringBuilder.toString()));
|
|
|
-
|
|
|
- // System.out.println(stringBuilder);
|
|
|
return stringBuilder;
|
|
|
})
|
|
|
).collectList();
|