Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-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
王建峰
ydl-auth
Commits
13e1bff4
Commit
13e1bff4
authored
Dec 10, 2019
by
wangdayewjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed 调通
parent
1c214cd8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
Swagger2Config.java
ydl-auth/ydl-auth-api/src/main/java/com/ydl/auth/Swagger2Config.java
+1
-1
SignController.java
ydl-auth/ydl-auth-api/src/main/java/com/ydl/auth/apis/SignController.java
+2
-2
AppAuthFacadeImpl.java
ydl-auth/ydl-auth-service/src/main/java/com/ydl/auth/service/facade/AppAuthFacadeImpl.java
+6
-1
No files found.
ydl-auth/ydl-auth-api/src/main/java/com/ydl/auth/Swagger2Config.java
View file @
13e1bff4
...
...
@@ -17,7 +17,7 @@ public class Swagger2Config {
@Bean
public
Docket
createRestApi
()
{
return
new
Docket
(
DocumentationType
.
SWAGGER_2
).
apiInfo
(
apiInfo
()).
select
().
apis
(
RequestHandlerSelectors
.
basePackage
(
"com.ydl.a
dvertise.api
.apis"
))
return
new
Docket
(
DocumentationType
.
SWAGGER_2
).
apiInfo
(
apiInfo
()).
select
().
apis
(
RequestHandlerSelectors
.
basePackage
(
"com.ydl.a
uth
.apis"
))
.
paths
(
PathSelectors
.
any
()).
build
();
}
...
...
ydl-auth/ydl-auth-api/src/main/java/com/ydl/auth/apis/SignController.java
View file @
13e1bff4
...
...
@@ -29,7 +29,7 @@ public class SignController {
@RequestMapping
(
value
=
"/getAccessKey"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
value
=
"消息频道页消息列表"
)
public
BaseDtoResponse
<
String
>
getAccessKey
(
@RequestParam
(
value
=
"app
Secret
"
)
String
appKey
,
@RequestParam
(
value
=
"app
Key
"
)
String
appKey
,
@RequestParam
(
value
=
"path"
)
String
path
)
throws
Exception
{
...
...
@@ -45,7 +45,7 @@ public class SignController {
return
ResponseFormatterHelper
.
success
(
sign
);
}
public
String
generateSign
(
final
String
signKey
,
final
Map
<
String
,
String
>
params
)
{
public
String
generateSign
(
String
signKey
,
Map
<
String
,
String
>
params
)
{
List
<
String
>
storedKeys
=
Arrays
.
stream
(
params
.
keySet
()
.
toArray
(
new
String
[]{}))
.
sorted
(
Comparator
.
naturalOrder
())
...
...
ydl-auth/ydl-auth-service/src/main/java/com/ydl/auth/service/facade/AppAuthFacadeImpl.java
View file @
13e1bff4
...
...
@@ -2,12 +2,17 @@ package com.ydl.auth.service.facade;
import
com.alibaba.dubbo.config.annotation.Service
;
import
com.ydl.auth.inf.AppAuthFacade
;
import
com.ydl.auth.service.biz.AppAuthBiz
;
import
javax.annotation.Resource
;
@Service
(
version
=
"1.0.0"
,
interfaceClass
=
AppAuthFacade
.
class
,
timeout
=
500000
)
public
class
AppAuthFacadeImpl
implements
AppAuthFacade
{
@Resource
private
AppAuthBiz
AppAuthBiz
;
@Override
public
String
getSecretByAppKey
(
String
appKey
)
{
return
null
;
return
AppAuthBiz
.
getSecretByAppKey
(
appKey
)
;
}
}
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