话术修改

This commit is contained in:
zhangheng 2024-07-16 13:51:05 +08:00
parent 62563aaa32
commit 03d6598c93

View File

@ -244,6 +244,7 @@ public class ScriptInfoServiceImpl implements IScriptInfoService {
int i = 0;
for (Node node : scriptVO.getNodes()) {
node.setScriptInfoId(scriptVO.getScriptInfoId());
if (Objects.nonNull(node.getLabel())){
String[] split = node.getLabel().split("\\n");
int i1 = node.getLabel().indexOf("\n");
if (split.length > 0) {
@ -252,6 +253,7 @@ public class ScriptInfoServiceImpl implements IScriptInfoService {
if (split.length > 1) {
node.setScriptContent(node.getLabel().substring(i1 + 1));
}
}
node.setScriptNodeType(node.getType());
node.setCreateBy(SecurityUtils.getUsername());
node.setCreateTime(LocalDateTime.now());