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
3827d0e5
Commit
3827d0e5
authored
Apr 21, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自建
parent
3f5a34dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+6
-1
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+6
-5
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
3827d0e5
...
@@ -256,7 +256,12 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -256,7 +256,12 @@ public class WxEnterpriseInfoController extends WebBaseController {
wxEnterpriseId
=
loginStaff
.
getWxEnterpriseId
();
wxEnterpriseId
=
loginStaff
.
getWxEnterpriseId
();
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseApiService
.
getQwInfo
(
wxEnterpriseId
);
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseApiService
.
getQwInfo
(
wxEnterpriseId
);
String
accesstoken
=
qywxCorpApiService
.
getCorpAccessToken
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
());
String
accesstoken
=
null
;
if
(
qwDTO
.
isSelf
())
{
accesstoken
=
qywxCorpApiService
.
getCorpAccessToken
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
());
}
else
{
accesstoken
=
qywxCorpApiService
.
getToken
(
qwDTO
.
getThirdCorpid
(),
qwDTO
.
getSelfSecret
())
;
}
WellDoneLoginInfoVO
wellDoneLoginInfoVo
=
new
WellDoneLoginInfoVO
();
WellDoneLoginInfoVO
wellDoneLoginInfoVo
=
new
WellDoneLoginInfoVO
();
wellDoneLoginInfoVo
.
setAccessToken
(
accesstoken
);
wellDoneLoginInfoVo
.
setAccessToken
(
accesstoken
);
wellDoneLoginInfoVo
.
setStaffId
(
staffId
);
wellDoneLoginInfoVo
.
setStaffId
(
staffId
);
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
3827d0e5
...
@@ -43,7 +43,6 @@ import com.gic.commons.util.EntityUtil;
...
@@ -43,7 +43,6 @@ import com.gic.commons.util.EntityUtil;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.api.constant.EnterpriseServiceEnum
;
import
com.gic.enterprise.api.constant.EnterpriseServiceEnum
;
import
com.gic.enterprise.api.dto.EnterpriseDTO
;
import
com.gic.enterprise.api.dto.EnterpriseDTO
;
import
com.gic.enterprise.api.dto.EnterpriseUsingPermissionDto
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.dto.StoreSearchDTO
;
import
com.gic.enterprise.api.dto.StoreSearchDTO
;
import
com.gic.enterprise.api.dto.enterprise.EnterpriseUsingStatusDTO
;
import
com.gic.enterprise.api.dto.enterprise.EnterpriseUsingStatusDTO
;
...
@@ -112,8 +111,6 @@ import com.gic.haoban.manage.web.vo.notify.CustomerFriendMemberVO;
...
@@ -112,8 +111,6 @@ import com.gic.haoban.manage.web.vo.notify.CustomerFriendMemberVO;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.convert.Convert
;
@RestController
@RestController
public
class
WxStaffController
extends
WebBaseController
{
public
class
WxStaffController
extends
WebBaseController
{
...
@@ -1435,8 +1432,12 @@ public class WxStaffController extends WebBaseController {
...
@@ -1435,8 +1432,12 @@ public class WxStaffController extends WebBaseController {
if
(
qwDTO
.
needOpenUserId3th
())
{
if
(
qwDTO
.
needOpenUserId3th
())
{
wxUserId
=
staffDTO
.
getWxOpenUseId
();
wxUserId
=
staffDTO
.
getWxOpenUseId
();
}
}
String
openid
=
qywxUserApiService
.
getSelfOpenIdByUserId
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
String
secret
=
config
.
getWxSuiteid
();
wxUserId
);
if
(
qwDTO
.
isSelf
())
{
secret
=
qwDTO
.
getSelfSecret
();
}
String
openid
=
qywxUserApiService
.
getSelfOpenIdByUserId
(
qwDTO
.
getThirdCorpid
(),
secret
,
wxUserId
,
qwDTO
.
isSelf
(),
qwDTO
.
getUrlHost
());
if
(
StringUtils
.
isBlank
(
openid
))
{
if
(
StringUtils
.
isBlank
(
openid
))
{
int
code
=
HaoBanErrCode
.
ERR_600003
.
getCode
();
int
code
=
HaoBanErrCode
.
ERR_600003
.
getCode
();
return
RestResponse
.
failure
(
String
.
valueOf
(
code
),
HaoBanErrCode
.
ERR_600003
.
getMsg
());
return
RestResponse
.
failure
(
String
.
valueOf
(
code
),
HaoBanErrCode
.
ERR_600003
.
getMsg
());
...
...
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