Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
konke-ai-alibaba-mcp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何金镒
konke-ai-alibaba-mcp
Commits
0e709a9b
Commit
0e709a9b
authored
Nov 24, 2025
by
何金镒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加 null 判断
parent
1aa52cd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
src/main/java/com/ikonke/konkeaialibabamcp/controller/DifyControllerV2.java
...ikonke/konkeaialibabamcp/controller/DifyControllerV2.java
+12
-2
No files found.
src/main/java/com/ikonke/konkeaialibabamcp/controller/DifyControllerV2.java
View file @
0e709a9b
...
...
@@ -291,11 +291,21 @@ public class DifyControllerV2 {
inputs
.
set
(
"communityId"
,
userEntity
.
getCommunityId
());
inputs
.
set
(
"easId"
,
userEntity
.
getEasId
());
inputs
.
set
(
"roomId"
,
userEntity
.
getRoomInfo
().
getRoomId
());
inputs
.
set
(
"roomName"
,
URLEncoder
.
encode
(
userEntity
.
getRoomInfo
().
getRoomName
(),
StandardCharsets
.
UTF_8
.
name
()));
if
(
userEntity
.
getRoomInfo
()!=
null
&&
userEntity
.
getRoomInfo
().
getRoomName
()!=
null
){
inputs
.
set
(
"roomName"
,
URLEncoder
.
encode
(
userEntity
.
getRoomInfo
().
getRoomName
(),
StandardCharsets
.
UTF_8
.
name
()));
}
else
{
inputs
.
set
(
"roomName"
,
userEntity
.
getRoomInfo
().
getRoomId
());
}
inputs
.
set
(
"buildingId"
,
userEntity
.
getRoomInfo
().
getBuildingId
());
inputs
.
set
(
"userPhone"
,
userEntity
.
getPhoneNum
());
inputs
.
set
(
"userName"
,
URLEncoder
.
encode
(
userEntity
.
getNickName
(),
StandardCharsets
.
UTF_8
.
name
()));
if
(
userEntity
.
getRealName
()!=
null
){
inputs
.
set
(
"userName"
,
URLEncoder
.
encode
(
userEntity
.
getRealName
(),
StandardCharsets
.
UTF_8
.
name
()));
}
else
{
inputs
.
set
(
"userName"
,
userEntity
.
getPhoneNum
());
}
inputs
.
set
(
"today"
,
DateUtil
.
today
());
...
...
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