话术修改

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

View File

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