浏览代码

fix: 交友裂变-预览二维码域名修改

wangcheng 2 年之前
父节点
当前提交
cc9fbc3436

+ 8 - 3
launch-admin/src/main/java/com/webflux/launchadmin/mysql/service/planNew/goGenerate/GoGenerateService.java

@@ -750,7 +750,12 @@ public class GoGenerateService {
                         stringBuilder.append(get6Str());
                         stringBuilder.append(".");
                         stringBuilder.append(domainSelect.domain());
-                        stringBuilder.append("/index.html?code=");
+                        if (3 == saveRequest.getType()) {
+                            // 交友裂变
+                            stringBuilder.append("/portal-page/index?code=");
+                        } else {
+                            stringBuilder.append("/index.html?code=");
+                        }
                         stringBuilder.append(saveRequest.getCode());
                         stringBuilder.append("&sk=");
                         stringBuilder.append(IdUtil.fastSimpleUUID());
@@ -1122,7 +1127,7 @@ public class GoGenerateService {
                     column = "plan_new_id";
                 } else if (2 == type) {
                     column = "listening_plan_new_id";
-                } else if (3 == type) {
+                } else if (type > 2) {
                     column = "id";
                 } else {
                     throw new BaseException("type错误::" + type);
@@ -1147,7 +1152,7 @@ public class GoGenerateService {
                             });
                 } else {
                     stringMono = template.selectOne(query, PlanNewCommon.class)
-                            .switchIfEmpty(Mono.error(new BaseException("自定义二维码:裂变计划查询::PlanId 返回空结果::" + planId)))
+                            .switchIfEmpty(Mono.error(new BaseException("自定义二维码:交友计划查询::PlanId 返回空结果::" + planId)))
                             .onErrorResume(throwable -> Mono.error(new Exception(throwable.getMessage())))
                             .flatMap(f1 -> {
                                 String code = f1.code();