Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
d1b0c21a
Commit
d1b0c21a
authored
Sep 23, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:AI创建失败
parent
697c05d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
AgentApplicationInfoServiceImpl.java
...ation/aggregate/impl/AgentApplicationInfoServiceImpl.java
+5
-15
No files found.
src/main/java/cn/com/poc/agent_application/aggregate/impl/AgentApplicationInfoServiceImpl.java
View file @
d1b0c21a
...
@@ -202,12 +202,8 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
...
@@ -202,12 +202,8 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
List
<
MultiContent
>
multiContents
=
new
ArrayList
<>();
List
<
MultiContent
>
multiContents
=
new
ArrayList
<>();
multiContents
.
add
(
new
MultiContent
()
{{
multiContents
.
add
(
new
MultiContent
()
{{
String
configSystem
=
configEntity
.
getConfigSystem
();
String
configSystem
=
configEntity
.
getConfigSystem
();
if
(
StringUtils
.
isNotEmpty
(
agentTitle
))
{
configSystem
=
configSystem
.
replace
(
"${agent_title}"
,
StringUtils
.
isNotBlank
(
agentTitle
)
?
agentTitle
:
StringUtils
.
EMPTY
);
configSystem
=
configSystem
.
replace
(
"${agent_title}"
,
agentTitle
);
configSystem
=
configSystem
.
replace
(
"${agent_desc}"
,
StringUtils
.
isNotBlank
(
agentDesc
)
?
agentDesc
:
StringUtils
.
EMPTY
);
}
if
(
StringUtils
.
isNotEmpty
(
agentDesc
))
{
configSystem
=
configSystem
.
replace
(
"${agent_desc}"
,
agentDesc
);
}
setText
(
configSystem
);
setText
(
configSystem
);
setType
(
"text"
);
setType
(
"text"
);
}});
}});
...
@@ -243,12 +239,8 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
...
@@ -243,12 +239,8 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
List
<
MultiContent
>
multiContents
=
new
ArrayList
<>();
List
<
MultiContent
>
multiContents
=
new
ArrayList
<>();
multiContents
.
add
(
new
MultiContent
()
{{
multiContents
.
add
(
new
MultiContent
()
{{
String
configSystem
=
configEntity
.
getConfigSystem
();
String
configSystem
=
configEntity
.
getConfigSystem
();
if
(
StringUtils
.
isNotBlank
(
agentTitle
))
{
configSystem
=
configSystem
.
replace
(
"${agent_title}"
,
StringUtils
.
isNotBlank
(
agentTitle
)
?
agentTitle
:
StringUtils
.
EMPTY
);
configSystem
=
configSystem
.
replace
(
"${agent_title}"
,
agentTitle
);
configSystem
=
configSystem
.
replace
(
"${agent_desc}"
,
StringUtils
.
isNotBlank
(
agentDesc
)
?
agentDesc
:
StringUtils
.
EMPTY
);
}
if
(
StringUtils
.
isNotBlank
(
agentDesc
))
{
configSystem
=
configSystem
.
replace
(
"${agent_desc}"
,
agentDesc
);
}
setText
(
configSystem
);
setText
(
configSystem
);
setType
(
"text"
);
setType
(
"text"
);
}});
}});
...
@@ -306,9 +298,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
...
@@ -306,9 +298,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
List
<
MultiContent
>
multiContents
=
new
ArrayList
<>();
List
<
MultiContent
>
multiContents
=
new
ArrayList
<>();
multiContents
.
add
(
new
MultiContent
()
{{
multiContents
.
add
(
new
MultiContent
()
{{
String
configSystem
=
configEntity
.
getConfigSystem
();
String
configSystem
=
configEntity
.
getConfigSystem
();
if
(
StringUtils
.
isNotBlank
(
input
))
{
configSystem
=
configSystem
.
replace
(
"${input}"
,
StringUtils
.
isNotBlank
(
input
)
?
input
:
StringUtils
.
EMPTY
);
configSystem
=
configSystem
.
replace
(
"${input}"
,
input
);
}
setText
(
configSystem
);
setText
(
configSystem
);
setType
(
"text"
);
setType
(
"text"
);
}});
}});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment