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
8424a03c
Commit
8424a03c
authored
Apr 03, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户资源
parent
2ebc73cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
Config.java
...uth-service/src/main/java/com/gic/auth/config/Config.java
+20
-0
AuditorApiServiceImpl.java
...om/gic/auth/service/outer/impl/AuditorApiServiceImpl.java
+4
-3
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/config/Config.java
0 → 100644
View file @
8424a03c
package
com
.
gic
.
auth
.
config
;
import
com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Configuration
;
@Configuration
@EnableApolloConfig
public
class
Config
{
@Value
(
"${appkey}"
)
private
String
appkey
;
public
String
getAppkey
()
{
return
appkey
;
}
public
void
setAppkey
(
String
appkey
)
{
this
.
appkey
=
appkey
;
}
}
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/AuditorApiServiceImpl.java
View file @
8424a03c
...
...
@@ -2,6 +2,7 @@ package com.gic.auth.service.outer.impl;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.config.Config
;
import
com.gic.auth.dto.AuditorDTO
;
import
com.gic.auth.entity.TabAuditor
;
import
com.gic.auth.entity.TabAuditorAuditedGroupRel
;
...
...
@@ -62,8 +63,8 @@ public class AuditorApiServiceImpl implements AuditorApiService {
private
ServiceUserApiService
serviceUserApiService
;
@Autowired
private
UserService
userService
;
// 服务号APPKEY
p
ublic
static
final
String
APPKEY
=
"wxc6fd9beaf9a9dbe9"
;
@Autowired
p
rivate
Config
config
;
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
...
...
@@ -286,7 +287,7 @@ public class AuditorApiServiceImpl implements AuditorApiService {
private
String
getTempQrCodeUrl
(
Integer
auditorId
)
{
logger
.
info
(
"生成临时带参二维码 auditorId:{}"
,
auditorId
);
ServiceResponse
<
String
>
serviceResponse
=
weixinBaseFunService
.
getTemporaryQRcodeURL
(
APPKEY
,
"auditor_"
+
auditorId
,
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