|
|
@@ -409,19 +409,19 @@ public class ReadBookPlanServicesImpl implements ReadBookPlanServicesInterface{
|
|
|
if (first.isPresent()) {
|
|
|
Item item = first.get();
|
|
|
item.setName("客服二维码");
|
|
|
+ Mono<String> url;
|
|
|
if(item.getIsRandom()){
|
|
|
- Mono<String> url;
|
|
|
+ //用计划
|
|
|
+ url = byGroupIdGetUrl(Mono.just(plan));
|
|
|
+ return Mono.zip(Mono.just(item),url).flatMap(f->{
|
|
|
+ f.getT1().setV(f.getT2());
|
|
|
+ f.getT1().setName("客服二维码");
|
|
|
+ return Mono.just(true);
|
|
|
+ });
|
|
|
+ }else {
|
|
|
if(item.getIsChannel()){
|
|
|
//用客服
|
|
|
url = Mono.just(goGenerateService.byCustomerIdGetUrl(request.getChannelCodeId()));
|
|
|
- return Mono.zip(Mono.just(item),url).flatMap(f->{
|
|
|
- f.getT1().setV(f.getT2());
|
|
|
- f.getT1().setName("客服二维码");
|
|
|
- return Mono.just(true);
|
|
|
- });
|
|
|
- }else {
|
|
|
- //用计划
|
|
|
- url = byGroupIdGetUrl(Mono.just(plan));
|
|
|
return Mono.zip(Mono.just(item),url).flatMap(f->{
|
|
|
f.getT1().setV(f.getT2());
|
|
|
f.getT1().setName("客服二维码");
|
|
|
@@ -451,7 +451,7 @@ public class ReadBookPlanServicesImpl implements ReadBookPlanServicesInterface{
|
|
|
stringBuilder.append("&sk=");
|
|
|
stringBuilder.append(IdUtil.fastSimpleUUID());
|
|
|
}else {
|
|
|
- throw new BaseException("二维码链接:::通过计划id:"+a.id() +"的营销类型查询域名为空");
|
|
|
+ throw new BaseException("海报 二维码 自动生成匹配链接:::通过计划id:"+a.id() +"的营销类型查询域名为空");
|
|
|
}
|
|
|
return stringBuilder.toString();
|
|
|
})
|