Commit 13e1bff4 by wangdayewjf

fixed 调通

parent 1c214cd8
......@@ -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.advertise.api.apis"))
return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo()).select().apis(RequestHandlerSelectors.basePackage("com.ydl.auth.apis"))
.paths(PathSelectors.any()).build();
}
......
......@@ -29,7 +29,7 @@ public class SignController {
@RequestMapping(value = "/getAccessKey", method = RequestMethod.GET)
@ApiOperation(value = "消息频道页消息列表")
public BaseDtoResponse<String> getAccessKey(
@RequestParam(value = "appSecret") String appKey,
@RequestParam(value = "appKey") 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())
......
......@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment