Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
39c179fd
Commit
39c179fd
authored
Sep 11, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ai换装
parent
26b23f14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+3
-8
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
39c179fd
...
...
@@ -379,16 +379,11 @@ public class WxStaffController extends WebBaseController {
@IgnoreLogin
@RequestMapping
(
"/get-ai-custom-setting"
)
public
RestResponse
<
Object
>
getAiCustomSetting
(
String
enterpriseId
,
String
clerkId
)
{
String
wmId
=
""
;
String
clerkCode
=
""
;
if
(
null
!=
clerkId
)
{
ClerkDTO
clerkDTO
=
this
.
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
null
!=
clerkDTO
&&
clerkDTO
.
getClerkType
()<=
1
)
{
String
clerkCode
=
clerkDTO
.
getClerkCode
();
ServiceResponse
<
WmGuiderInfoDTO
>
resp
=
this
.
gicWeimobGuiderRelService
.
getWmClerkInfoByClerkCode
(
enterpriseId
,
clerkCode
);
if
(
null
!=
resp
.
getResult
())
{
logger
.
info
(
"wm={}"
,
JSONObject
.
toJSONString
(
resp
));
wmId
=
""
+
resp
.
getResult
().
getGuiderVid
();
}
clerkCode
=
clerkDTO
.
getClerkCode
();
}
}
List
<
JSONObject
>
list
=
CustomSwitcher
.
haoban_ai_custom
;
...
...
@@ -396,7 +391,7 @@ public class WxStaffController extends WebBaseController {
voList
=
voList
.
stream
().
filter
(
o
->
o
.
getIsOpen
()==
1
&&
o
.
getEid
().
equals
(
enterpriseId
)).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
voList
))
{
AiCustomVO
vo
=
voList
.
get
(
0
)
;
String
h5
=
String
.
format
(
vo
.
getUrl
(),
wmId
)
;
String
h5
=
String
.
format
(
vo
.
getUrl
(),
clerkCode
)
;
String
str
=
"{\"url\":\""
+
h5
+
"\",\"id\":\"5\"}"
;
Map
<
String
,
Object
>
map
=
this
.
enterpriseWxaLinkService
.
getWxaLinkAndQrCode
(
enterpriseId
,
str
)
;
vo
.
setPath
(
map
.
get
(
"link"
).
toString
());
...
...
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