Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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
base_platform_enterprise
gic-platform-auth
Commits
a11a7297
Commit
a11a7297
authored
May 07, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
d996f4cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
AuditorApiServiceImpl.java
...om/gic/auth/service/outer/impl/AuditorApiServiceImpl.java
+15
-12
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/AuditorApiServiceImpl.java
View file @
a11a7297
...
...
@@ -205,17 +205,20 @@ public class AuditorApiServiceImpl implements AuditorApiService {
public
ServiceResponse
<
Void
>
receiveOpenid
(
String
qrCodeParam
,
String
openid
)
{
logger
.
info
(
"二维码参数:{},openid:{}"
,
qrCodeParam
,
openid
);
if
(
StringUtils
.
isNotBlank
(
qrCodeParam
)
&&
StringUtils
.
isNotBlank
(
openid
))
{
Integer
auditorId
=
Integer
.
valueOf
(
qrCodeParam
);
TabAuditor
auditor
=
this
.
auditorService
.
getAuditor
(
auditorId
);
if
(
auditor
!=
null
)
{
boolean
repeat
=
this
.
auditorService
.
validOpenidIsRepeat
(
auditor
.
getEnterpriseId
(),
openid
,
null
);
if
(
repeat
)
{
logger
.
warn
(
"receiveOpenid失败,商户:{}下,存在重复的openid:{}"
,
auditor
.
getEnterpriseId
(),
openid
);
}
else
{
AuditorDTO
auditorDTO
=
new
AuditorDTO
();
auditorDTO
.
setAuditorId
(
auditorId
);
auditorDTO
.
setOpenid
(
openid
);
this
.
auditorService
.
update
(
auditorDTO
);
if
(
qrCodeParam
.
startsWith
(
"auditor_"
))
{
String
auditorIdStr
=
qrCodeParam
.
substring
(
qrCodeParam
.
indexOf
(
"auditor_"
)
+
8
);
Integer
auditorId
=
Integer
.
valueOf
(
auditorIdStr
);
TabAuditor
auditor
=
this
.
auditorService
.
getAuditor
(
auditorId
);
if
(
auditor
!=
null
)
{
boolean
repeat
=
this
.
auditorService
.
validOpenidIsRepeat
(
auditor
.
getEnterpriseId
(),
openid
,
null
);
if
(
repeat
)
{
logger
.
warn
(
"receiveOpenid失败,商户:{}下,存在重复的openid:{}"
,
auditor
.
getEnterpriseId
(),
openid
);
}
else
{
AuditorDTO
auditorDTO
=
new
AuditorDTO
();
auditorDTO
.
setAuditorId
(
auditorId
);
auditorDTO
.
setOpenid
(
openid
);
this
.
auditorService
.
update
(
auditorDTO
);
}
}
}
}
...
...
@@ -292,7 +295,7 @@ public class AuditorApiServiceImpl implements AuditorApiService {
private
String
getTempQrCodeUrl
(
Integer
auditorId
)
{
logger
.
info
(
"生成临时带参二维码 auditorId:{}"
,
auditorId
);
ServiceResponse
<
String
>
serviceResponse
=
weixinBaseFunService
.
getTemporaryQRcodeURL
(
config
.
getAppkey
(),
auditorId
.
toString
()
,
300
);
ServiceResponse
<
String
>
serviceResponse
=
weixinBaseFunService
.
getTemporaryQRcodeURL
(
config
.
getAppkey
(),
"auditor_"
+
auditorId
,
300
);
if
(
serviceResponse
.
isSuccess
())
{
logger
.
info
(
"临时带参二维码生成成功:{}"
,
serviceResponse
.
getResult
());
return
serviceResponse
.
getResult
();
...
...
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