Skip to content

Commit 57b0222

Browse files
committed
Merge branch '1.3.x'
2 parents ed96479 + cee812b commit 57b0222

File tree

1 file changed

+3
-0
lines changed
  • app-builder/plugins/aipp-plugin/src/main/java/modelengine/fit/jober/aipp/domains/appversion

1 file changed

+3
-0
lines changed

app-builder/plugins/aipp-plugin/src/main/java/modelengine/fit/jober/aipp/domains/appversion/AppVersion.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public class AppVersion {
150150
private static final Logger LOGGER = Logger.get(AppVersion.class);
151151
private static final String PUBLISH_UPDATE_DESCRIPTION_KEY = "publishedDescription";
152152
private static final String PUBLISH_UPDATE_LOG_KEY = "publishedUpdateLog";
153+
private static final String ALLOW_GUEST = "allow_guest";
153154
private static final int RETRY_PATH_GENERATION_TIMES = 3;
154155
private static final int PATH_LENGTH = 16;
155156
private static final String VERSION_FORMAT = "{0}.{1}.{2}";
@@ -748,11 +749,13 @@ public void cloneVersion(AppBuilderAppCreateDto dto, String version, String type
748749
this.getFormProperties().forEach(p -> p.setAppId(newAppId));
749750

750751
if (Objects.nonNull(dto)) {
752+
boolean allowGuest = ObjectUtils.cast(this.attributes.getOrDefault(ALLOW_GUEST, false));
751753
this.attributes.clear();
752754
this.attributes.put("description", dto.getDescription());
753755
this.attributes.put("icon", dto.getIcon());
754756
this.attributes.put("greeting", dto.getGreeting());
755757
this.attributes.put("app_type", dto.getAppType());
758+
this.attributes.put(ALLOW_GUEST, allowGuest);
756759
if (StringUtils.isNotBlank(dto.getStoreId())) {
757760
this.attributes.put("store_id", dto.getStoreId());
758761
this.data.setUniqueName(dto.getStoreId());

0 commit comments

Comments
 (0)