|
|
@@ -643,6 +643,8 @@ public class GoGenerateService {
|
|
|
throw new BaseException("群封面素材为空");
|
|
|
}
|
|
|
}
|
|
|
+ //groupHeadUrl(群头像);groupTitle(群名称)
|
|
|
+ StringBuilder stringBuilder = getStringBuilder(goRequest);
|
|
|
Optional<Item> first5 = goRequest.getItem().stream().filter(f1 -> "qrcode".equals(f1.getT())).findFirst();
|
|
|
if (first5.isPresent()) {
|
|
|
Item item = first5.get();
|
|
|
@@ -654,7 +656,7 @@ public class GoGenerateService {
|
|
|
JSONArray jsonArray = JSONUtil.parseArray(kefu);
|
|
|
if (!jsonArray.isEmpty()) {
|
|
|
String s = jsonArray.get(0, String.class);
|
|
|
- item.setV(s);
|
|
|
+ item.setV(s+stringBuilder);
|
|
|
item.setName("客服二维码");
|
|
|
}
|
|
|
} else {
|
|
|
@@ -665,7 +667,7 @@ public class GoGenerateService {
|
|
|
if ("".equals(t6)) {
|
|
|
throw new BaseException("获取H5链接为空");
|
|
|
}
|
|
|
- item.setV(t6.toString());
|
|
|
+ item.setV(t6.toString()+stringBuilder);
|
|
|
item.setName("H5二维码");
|
|
|
}
|
|
|
}
|
|
|
@@ -756,6 +758,16 @@ public class GoGenerateService {
|
|
|
return stringMono;
|
|
|
}
|
|
|
|
|
|
+ private StringBuilder getStringBuilder(GoRequest goRequest) {
|
|
|
+ Optional<Item> first = goRequest.getItem().stream().filter(ff -> "cover".equals(ff.getT()) ).findFirst();
|
|
|
+ Optional<Item> first3 = goRequest.getItem().stream().filter(ff -> "title".equals(ff.getT())).findFirst();
|
|
|
+ StringBuilder stringBuilder = new StringBuilder("&groupHeadUrl=");
|
|
|
+ stringBuilder.append(first.isPresent()?first.get().getV():"");
|
|
|
+ stringBuilder.append("&groupTitle=");
|
|
|
+ stringBuilder.append(first3.isPresent()?first3.get().getV():"");
|
|
|
+ return stringBuilder;
|
|
|
+ }
|
|
|
+
|
|
|
public Mono<StringBuilder> getImportDomain(PlanReq saveRequest) {
|
|
|
if (Objects.isNull(saveRequest.getImportDomain()) || "".equals(saveRequest.getImportDomain())) {
|
|
|
throw new BaseException("入口页域名值不可为空");
|