Просмотр исходного кода

type6-v0.07

(cherry picked from commit 65653a0fa89cac644058e370166bb27f221fbf3c)
MOKASZ\lw12420 1 год назад
Родитель
Сommit
7c7def008c

+ 7 - 7
launch-admin/src/main/java/com/webflux/launchadmin/mysql/controller/planNew/PlanNewCommonOutController.java

@@ -1361,12 +1361,12 @@ public class PlanNewCommonOutController {
                             //return Mono.just(new StringBuilder(s));
                         }
                         //saveRequest.setImportDomain(String.valueOf(saveRequest.getGroupId()));
-                        return getDomainSetV(groupId, planId,2, ff.code());
+                        return getDomainSetV(groupId, planId,2, ff.code(),false);
                     }else {
                         if (3 == ff.type()) {
-                            return getDomainSetV(groupId, planId,3, ff.code());
+                            return getDomainSetV(groupId, planId,1, ff.code(),true);
                         }else {
-                            return getDomainSetV(groupId, planId,1, ff.code());
+                            return getDomainSetV(groupId, planId,1, ff.code(),false);
                         }
                     }
 
@@ -1389,7 +1389,7 @@ public class PlanNewCommonOutController {
                     if (Objects.isNull(groupId)) {
                         return Mono.error(new BaseException("查询裂变计划 groupId 值为 null"));
                     }
-                    return getDomainSetV(groupId, planId,1, ff.code());
+                    return getDomainSetV(groupId, planId,1, ff.code(),false);
                 });
     }
 
@@ -1416,11 +1416,11 @@ public class PlanNewCommonOutController {
                     }catch (Exception e){
                         return Mono.error(new BaseException("查询听书计划入口域名类型值解析错误"+e.getMessage()));
                     }
-                    return getDomainSetV(groupId, planId,1,ff.code());
+                    return getDomainSetV(groupId, planId,1,ff.code(),false);
                 });
     }
 
-    private Mono<ByCodeGetImportDomainRes> getDomainSetV( Long  groupId, String planId,Integer type,String code) {
+    private Mono<ByCodeGetImportDomainRes> getDomainSetV( Long  groupId, String planId,Integer type,String code,boolean isFri) {
         return template.select(Query.query(Criteria.where("group_type_id").is(groupId)
                         .and("status").is(1)
                         .and("type").is(type)
@@ -1447,7 +1447,7 @@ public class PlanNewCommonOutController {
                         stringBuilder.append(domainSelect.domain());
                         if(2==type){
                             stringBuilder.append("?code=");
-                        }else if(3==type) {
+                        }else if(isFri) {
                             stringBuilder.append("/portal-page/index?code=");
                         }else {
                             stringBuilder.append("/index.html?code=");