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
ffea274a
Commit
ffea274a
authored
Jan 16, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1e875b92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
AgentApplicationInfoServiceImpl.java
...ation/aggregate/impl/AgentApplicationInfoServiceImpl.java
+7
-6
No files found.
src/main/java/cn/com/poc/agent_application/aggregate/impl/AgentApplicationInfoServiceImpl.java
View file @
ffea274a
...
...
@@ -56,6 +56,8 @@ import java.io.IOException;
import
java.io.PrintWriter
;
import
java.util.*
;
import
static
cn
.
com
.
poc
.
common
.
constant
.
XLangConstant
.*;
@Component
public
class
AgentApplicationInfoServiceImpl
implements
AgentApplicationInfoService
{
...
...
@@ -791,16 +793,15 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
ToolFunction
toolFunction
=
new
ToolFunction
();
BizAgentApplicationPluginEntity
bizAgentApplicationPluginEntity
=
bizAgentApplicationPluginService
.
getInfoById
(
functionResult
.
getFunctionName
());
if
(
bizAgentApplicationPluginEntity
!=
null
&&
!
bizAgentApplicationPluginEntity
.
getClassification
().
equals
(
"system"
))
{
Locale
currentLocale
=
Context
.
get
().
getMessageSource
().
getCurrentLocale
();
String
languageTag
=
currentLocale
.
toLanguageTag
();
switch
(
languageTag
)
{
case
"zh-CN"
:
String
lang
=
BlContext
.
getCurrentLocaleLanguageToLowerCase
();
switch
(
lang
)
{
case
ZH_CN:
toolFunction
.
setName
(
bizAgentApplicationPluginEntity
.
getZhCnTitle
());
break
;
case
"en"
:
case
ZH_TW
:
toolFunction
.
setName
(
bizAgentApplicationPluginEntity
.
getZhTwTitle
());
break
;
case
"zh-TW"
:
case
EN
:
toolFunction
.
setName
(
bizAgentApplicationPluginEntity
.
getEnTitle
());
break
;
}
...
...
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