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
c6b2ecd5
Commit
c6b2ecd5
authored
Jan 13, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微自建转代开发调整
parent
f44bb58e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
WxEnterpriseQwDTO.java
...java/com/gic/haoban/manage/api/dto/WxEnterpriseQwDTO.java
+1
-1
SecretSettingServiceImpl.java
...manage/service/service/impl/SecretSettingServiceImpl.java
+1
-1
WxEnterpriseServiceImpl.java
.../manage/service/service/impl/WxEnterpriseServiceImpl.java
+10
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/WxEnterpriseQwDTO.java
View file @
c6b2ecd5
...
...
@@ -81,7 +81,7 @@ public class WxEnterpriseQwDTO implements Serializable {
}
public
boolean
isSelf
()
{
return
this
.
wxSecurityType
==
5
;
return
this
.
wxSecurityType
==
5
||
this
.
wxSecurityType
==
6
;
}
public
int
getWxSecurityType
()
{
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/SecretSettingServiceImpl.java
View file @
c6b2ecd5
...
...
@@ -77,7 +77,7 @@ public class SecretSettingServiceImpl implements SecretSettingService {
return
null
;
}
// 如果是纯自建,使用自建的token
if
(
qwDTO
.
isSelf
())
{
if
(
qwDTO
.
isSelf
()
&&
StringUtils
.
isNotBlank
(
qwDTO
.
getUrlHost
())
)
{
secretType
=
SecretTypeEnum
.
SELF_APP
.
getVal
()
;
}
TabSecretSetting
secretSetting
=
secretSettingMapper
.
getSecretSetting
(
wxEnterpriseId
,
secretType
,
null
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseServiceImpl.java
View file @
c6b2ecd5
...
...
@@ -121,6 +121,16 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
}
qw
.
setHbWxaAppid
(
this
.
getHbAppid
(
qw
,
config
.
getAppid
()));
qw
.
setSelf3thSecret
(
this
.
getSecret
(
qw
,
config
.
getWxSuiteid
()));
// 只使用代开发(用于从自建转代开发)
if
(
qw
.
getWxSecurityType
()==
6
)
{
qw
.
setHbWxaAppid
(
config
.
getAppid
());
TabSecretSetting
secret
=
secretSettingMapper
.
getSecretSetting
(
wxEnterpriseId
,
SecretTypeEnum
.
CUSTOMIZED_APP
.
getVal
(),
null
);
qw
.
setSelfSecret
(
secret
.
getSecretVal
());
qw
.
setAgentId
(
secret
.
getAgentId
());
qw
.
setAgentName
(
secret
.
getAgentName
());
qw
.
setSelf3thSecret
(
secret
.
getSecretVal
());
qw
.
setUrlHost
(
null
);
}
logger
.
info
(
"企微所有corpid信息={}"
,
JSON
.
toJSON
(
qw
));
return
qw
;
}
...
...
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