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
e889232b
Commit
e889232b
authored
Mar 11, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/xgh/2501零散迭代' into 'master'
朋友圈 See merge request
!2545
parents
1c5a655b
0da08634
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
QywxOpenController.java
...haoban/manage/web/controller/open/QywxOpenController.java
+5
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/open/QywxOpenController.java
View file @
e889232b
...
@@ -185,6 +185,7 @@ public class QywxOpenController {
...
@@ -185,6 +185,7 @@ public class QywxOpenController {
public
RestResponse
<
OpenStaffDTO
>
init
(
String
staffId
,
@RequestParam
(
defaultValue
=
"0"
)
int
loginAgainFlag
,
String
wxEnterpriseId
,
String
enterpriseId
)
{
public
RestResponse
<
OpenStaffDTO
>
init
(
String
staffId
,
@RequestParam
(
defaultValue
=
"0"
)
int
loginAgainFlag
,
String
wxEnterpriseId
,
String
enterpriseId
)
{
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
ServiceResponse
<
OpenStaffDTO
>
staffResp
=
this
.
openStaffApiService
.
getByStaffId
(
staffId
)
;
ServiceResponse
<
OpenStaffDTO
>
staffResp
=
this
.
openStaffApiService
.
getByStaffId
(
staffId
)
;
boolean
flag
=
false
;
if
(
null
!=
loginUser
)
{
if
(
null
!=
loginUser
)
{
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
();
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
();
enterpriseId
=
loginUser
.
getEnterpriseId
();
enterpriseId
=
loginUser
.
getEnterpriseId
();
...
@@ -192,6 +193,7 @@ public class QywxOpenController {
...
@@ -192,6 +193,7 @@ public class QywxOpenController {
return
RestResponse
.
failure
(
"9999"
,
"参数为空"
)
;
return
RestResponse
.
failure
(
"9999"
,
"参数为空"
)
;
}
}
}
else
{
}
else
{
flag
=
true
;
// 未登录直接通过参数授权
// 未登录直接通过参数授权
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isAnyBlank
(
wxEnterpriseId
,
enterpriseId
,
staffId
))
{
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isAnyBlank
(
wxEnterpriseId
,
enterpriseId
,
staffId
))
{
return
RestResponse
.
failure
(
"9999"
,
"参数为空"
)
;
return
RestResponse
.
failure
(
"9999"
,
"参数为空"
)
;
...
@@ -209,6 +211,9 @@ public class QywxOpenController {
...
@@ -209,6 +211,9 @@ public class QywxOpenController {
}
}
String
checkMsg
=
this
.
check
(
wxEnterpriseId
,
enterpriseId
,
null
!=
staffResp
.
getResult
());
String
checkMsg
=
this
.
check
(
wxEnterpriseId
,
enterpriseId
,
null
!=
staffResp
.
getResult
());
if
(
null
!=
checkMsg
)
{
if
(
null
!=
checkMsg
)
{
if
(
flag
)
{
return
RestResponse
.
successResult
();
}
return
RestResponse
.
failure
(
"9999"
,
checkMsg
);
return
RestResponse
.
failure
(
"9999"
,
checkMsg
);
}
}
if
(
StringUtils
.
isBlank
(
staffId
))
{
if
(
StringUtils
.
isBlank
(
staffId
))
{
...
...
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