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
576b5bdd
Commit
576b5bdd
authored
Jan 17, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/社群' into 'feature/获取用户敏感信息'
Feature/社群 See merge request
!868
parents
83b3f8fe
2093492a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletions
+35
-1
TestController.java
.../com/gic/haoban/manage/web/controller/TestController.java
+30
-0
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+5
-1
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/TestController.java
View file @
576b5bdd
...
@@ -79,6 +79,11 @@ public class TestController extends WebBaseController {
...
@@ -79,6 +79,11 @@ public class TestController extends WebBaseController {
private
QwFriendApiService
qwFriendApiService
;
private
QwFriendApiService
qwFriendApiService
;
@RequestMapping
(
"/qwcode"
)
public
HaobanResponse
qwcode
(
String
enterpriseId
,
String
unionid
,
String
openid
,
String
wxaUnionid
,
String
code
)
{
return
this
.
resultResponse
(
HaoBanErrCode
.
ERR_0
,
code
);
}
@RequestMapping
(
"/pending-check"
)
@RequestMapping
(
"/pending-check"
)
public
HaobanResponse
pendingChec
(
String
enterpriseId
,
String
unionid
,
String
openid
,
String
wxaUnionid
,
String
wxaOpenid
)
{
public
HaobanResponse
pendingChec
(
String
enterpriseId
,
String
unionid
,
String
openid
,
String
wxaUnionid
,
String
wxaOpenid
)
{
return
this
.
resultResponse
(
HaoBanErrCode
.
ERR_0
,
this
.
qwFriendApiService
.
pendingIdCheck
(
enterpriseId
,
unionid
,
openid
,
wxaUnionid
,
wxaOpenid
));
return
this
.
resultResponse
(
HaoBanErrCode
.
ERR_0
,
this
.
qwFriendApiService
.
pendingIdCheck
(
enterpriseId
,
unionid
,
openid
,
wxaUnionid
,
wxaOpenid
));
...
@@ -384,6 +389,19 @@ public class TestController extends WebBaseController {
...
@@ -384,6 +389,19 @@ public class TestController extends WebBaseController {
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
map
)
;
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
map
)
;
}
}
@RequestMapping
(
"test-qw-post-suite"
)
public
HaobanResponse
testQwPostSuite
(
String
url
,
String
corpid
,
String
json
)
{
if
(
isProd
())
{
return
null
;
}
String
token
=
qywxCorpApiService
.
getSuiteAccessToken
(
config
.
getWxSuiteid
())
;
logger
.
info
(
"toekn={},corpId={} , url={} , json={}"
,
token
,
corpid
,(
url
+
token
)
,
json
);
Map
<
String
,
Object
>
map
=
HttpClient
.
getWinxinResByJson
(
url
+
token
,
json
);
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
map
)
;
}
@RequestMapping
(
"test-qw-token"
)
@RequestMapping
(
"test-qw-token"
)
public
HaobanResponse
testQwPost3
(
String
corpid
,
String
secret
)
{
public
HaobanResponse
testQwPost3
(
String
corpid
,
String
secret
)
{
if
(
StringUtils
.
isBlank
(
secret
))
{
if
(
StringUtils
.
isBlank
(
secret
))
{
...
@@ -406,6 +424,18 @@ public class TestController extends WebBaseController {
...
@@ -406,6 +424,18 @@ public class TestController extends WebBaseController {
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
map
)
;
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
map
)
;
}
}
@RequestMapping
(
"test-qw-get-suite"
)
public
HaobanResponse
testQwGetSuite
(
String
url
,
String
corpid
)
{
if
(
isProd
())
{
return
null
;
}
String
token
=
qywxCorpApiService
.
getSuiteAccessToken
(
config
.
getWxSuiteid
())
;
logger
.
info
(
"toekn={},appid={} , url={} , json={}"
,
token
,
corpid
,(
url
+
token
));
Map
<
String
,
Object
>
map
=
HttpClient
.
getHttpByGet
(
url
+
token
);
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
map
)
;
}
@RequestMapping
(
"test-qw-post-dk"
)
@RequestMapping
(
"test-qw-post-dk"
)
public
HaobanResponse
testQwPostdk
(
String
url
,
String
corpid
,
String
secret
,
String
json
)
{
public
HaobanResponse
testQwPostdk
(
String
url
,
String
corpid
,
String
secret
,
String
json
)
{
if
(
isProd
())
{
if
(
isProd
())
{
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
576b5bdd
...
@@ -643,7 +643,11 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -643,7 +643,11 @@ public class WxEnterpriseInfoController extends WebBaseController {
memberSendMessageVo
.
setSelfExteralUserId
(
externalUserid
);
memberSendMessageVo
.
setSelfExteralUserId
(
externalUserid
);
memberSendMessageVo
.
setTitle
(
settingDTO
.
getTitle
());
memberSendMessageVo
.
setTitle
(
settingDTO
.
getTitle
());
memberSendMessageVo
.
setWxaHandUrl
(
enterpriseDTO
.
getMallMiniprogramLogoUrl
());
memberSendMessageVo
.
setWxaHandUrl
(
enterpriseDTO
.
getMallMiniprogramLogoUrl
());
memberSendMessageVo
.
setBindFlag
(
clerkRelatedDTO
.
getStatusFlag
()
==
1
?
1
:
0
);
int
bindFlag
=
0
;
if
(
clerkRelatedDTO
.
getStatusFlag
()==
1
&&
StringUtils
.
isNotBlank
(
clerkRelatedDTO
.
getMemberId
()))
{
bindFlag
=
1
;
}
memberSendMessageVo
.
setBindFlag
(
bindFlag
);
memberSendMessageVo
.
setWxaName
(
settingDTO
.
getMiniprogramName
());
memberSendMessageVo
.
setWxaName
(
settingDTO
.
getMiniprogramName
());
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
memberSendMessageVo
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
memberSendMessageVo
);
}
}
...
...
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