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
5f22f5a3
Commit
5f22f5a3
authored
Apr 21, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/自建应用验证' into 'developer'
自建调整 See merge request
!1184
parents
6a96ca31
9320144c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
SecretTypeEnum.java
.../java/com/gic/haoban/manage/api/enums/SecretTypeEnum.java
+2
-2
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+10
-3
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/enums/SecretTypeEnum.java
View file @
5f22f5a3
...
@@ -5,8 +5,8 @@ package com.gic.haoban.manage.api.enums;
...
@@ -5,8 +5,8 @@ package com.gic.haoban.manage.api.enums;
*/
*/
public
enum
SecretTypeEnum
{
public
enum
SecretTypeEnum
{
CONTACT_CUSTOMER
(
1
,
"
顾客联系--自建
"
),
CONTACT_CUSTOMER
(
1
,
"
自建(原顾客联系)
"
),
MEMBER_WAPP
(
4
,
"会员
小程序
"
),
MEMBER_WAPP
(
4
,
"会员
工具
"
),
CUSTOMIZED_APP
(
5
,
"自建代开发"
),
CUSTOMIZED_APP
(
5
,
"自建代开发"
),
WEWORK_PAY
(
6
,
"企业支付"
),
WEWORK_PAY
(
6
,
"企业支付"
),
;
;
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
5f22f5a3
...
@@ -320,12 +320,19 @@ public class WxEnterpriseController extends WebBaseController {
...
@@ -320,12 +320,19 @@ public class WxEnterpriseController extends WebBaseController {
if
(
CollectionUtils
.
isEmpty
(
secretTypeList
))
{
if
(
CollectionUtils
.
isEmpty
(
secretTypeList
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
false
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
false
);
}
}
// 如果是第三方校验待开发
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseApiService
.
getQwInfo
(
wxEnterpriseId
)
;
if
(
qwDTO
.
isSelf
())
{
if
((
secretTypeList
.
contains
(
SecretTypeEnum
.
CONTACT_CUSTOMER
.
getVal
())))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
true
);
}
}
else
{
if
((
secretTypeList
.
contains
(
SecretTypeEnum
.
CUSTOMIZED_APP
.
getVal
())))
{
if
((
secretTypeList
.
contains
(
SecretTypeEnum
.
CUSTOMIZED_APP
.
getVal
())))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
true
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
true
);
}
else
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
false
);
}
}
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
false
);
}
/**
/**
* 微信企业绑定接口绑定通讯录key
* 微信企业绑定接口绑定通讯录key
...
@@ -346,7 +353,7 @@ public class WxEnterpriseController extends WebBaseController {
...
@@ -346,7 +353,7 @@ public class WxEnterpriseController extends WebBaseController {
}
}
wxSecretKey
=
wxSecretKey
.
trim
();
wxSecretKey
=
wxSecretKey
.
trim
();
String
token
=
this
.
qywxCorpApiService
.
getToken
(
qwDTO
.
getDkCorpid
(),
wxSecretKey
);
String
token
=
this
.
qywxCorpApiService
.
getToken
(
qwDTO
.
getDkCorpid
(),
wxSecretKey
);
logger
.
info
(
"查询token"
,
token
)
;
logger
.
info
(
"查询token
={}
"
,
token
)
;
if
(
StringUtils
.
isEmpty
(
token
)
||
token
.
length
()
<
10
)
{
if
(
StringUtils
.
isEmpty
(
token
)
||
token
.
length
()
<
10
)
{
return
this
.
fail
(
"请确认secret是否正确"
)
;
return
this
.
fail
(
"请确认secret是否正确"
)
;
}
}
...
...
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