话术修改
This commit is contained in:
parent
62563aaa32
commit
03d6598c93
@ -244,13 +244,15 @@ public class ScriptInfoServiceImpl implements IScriptInfoService {
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
for (Node node : scriptVO.getNodes()) {
|
for (Node node : scriptVO.getNodes()) {
|
||||||
node.setScriptInfoId(scriptVO.getScriptInfoId());
|
node.setScriptInfoId(scriptVO.getScriptInfoId());
|
||||||
String[] split = node.getLabel().split("\\n");
|
if (Objects.nonNull(node.getLabel())){
|
||||||
int i1 = node.getLabel().indexOf("\n");
|
String[] split = node.getLabel().split("\\n");
|
||||||
if (split.length > 0) {
|
int i1 = node.getLabel().indexOf("\n");
|
||||||
node.setScriptNodeName(split[0]);
|
if (split.length > 0) {
|
||||||
}
|
node.setScriptNodeName(split[0]);
|
||||||
if (split.length > 1) {
|
}
|
||||||
node.setScriptContent(node.getLabel().substring(i1 + 1));
|
if (split.length > 1) {
|
||||||
|
node.setScriptContent(node.getLabel().substring(i1 + 1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
node.setScriptNodeType(node.getType());
|
node.setScriptNodeType(node.getType());
|
||||||
node.setCreateBy(SecurityUtils.getUsername());
|
node.setCreateBy(SecurityUtils.getUsername());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user