Skip to content

Commit 1a380b6

Browse files
committed
fix: fix getSchemaComponentsTree function bug
1 parent e7e4be5 commit 1a380b6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

base/src/main/java/com/tinyengine/it/config/AiChatConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public class AiChatConfig {
2626
private static final String OPENAI_API_URL = "https://api.openai.com";
2727
private static final String LOCAL_GPT_API_URL = "https://dashscope.aliyuncs.com/compatible-mode";
2828

29+
private static final String DEEPSEEK_V3_URL = "https://api.deepseek.com";
30+
2931

3032
/**
3133
* Gets AI chat config.

base/src/main/java/com/tinyengine/it/service/app/impl/v1/AppV1ServiceImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,9 @@ public List<ComponentTree> getSchemaComponentsTree(MetaDto metaDto) {
467467
Map<String, Object> data = Utils.convert(pageInfo);
468468
boolean isToLine = false;
469469
Map<String, Object> page = formatDataFields(data, resKeys, isToLine);
470-
page.put("isHome", String.valueOf(page.get("id")).equals(app.getHomePage().toString()));
470+
if (null != app.getHomePage()) {
471+
page.put("isHome", String.valueOf(page.get("id")).equals(app.getHomePage().toString()));
472+
}
471473
Map<String, Object> schema;
472474
Schema schemaUtil = new Schema();
473475
if (!pageInfo.getIsPage()) {

0 commit comments

Comments
 (0)