Skip to content

Commit 1192b1f

Browse files
committed
fix nbType default promptData
1 parent 30f2d6a commit 1192b1f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

toolkit-app/src/main/java/iot/technology/client/toolkit/app/ToolKitCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static void main(String[] args) {
8484
boolean isChinese = bundle.getLocale().equals(Locale.CHINESE);
8585
nbCmd.getCommandSpec().usageMessage().hidden(!isChinese);
8686

87-
int exitStatus = commandLine.execute(args);
87+
int exitStatus = commandLine.execute("nb", "call");
8888
if (exitStatus == ExitCodeEnum.NOTEND.getValue()) {
8989
return;
9090
}

toolkit-nbiot/src/main/java/iot/technology/client/toolkit/nb/service/node/NbTypeNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ public String nextNode(NodeContext context) {
6565
context.setPromptData(nbSettings);
6666
return NbSettingsCodeEnum.NB_MOB_APP_CONFIG.getCode();
6767
}
68+
List<String> nbSettings = bizService.getNbSettingsFromFile(SystemConfigConst.SYS_NB_TELECOM_PRODUCT_FILE_NAME);
69+
context.setPromptData(nbSettings);
6870
return NbSettingsCodeEnum.NB_TELECOM_APP_CONFIG.getCode();
6971
}
7072

0 commit comments

Comments
 (0)