mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
新增 微信第三方平台 获取预授权码接口
This commit is contained in:
@@ -88,6 +88,27 @@ public class AgentDevController extends BaseController {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取预授权码
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/getPreAuthorizerCode")
|
||||
public RestApiResponse<?> getPreAuthorizerCode() {
|
||||
logger.info("微信第三方平台 获取预授权码 start");
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
String preAuthorizerCode = agentDevService.getPreAuthorizerCode();
|
||||
response = new RestApiResponse<>(preAuthorizerCode);
|
||||
} catch (Exception e) {
|
||||
logger.error("微信第三方平台 获取预授权码 error, ", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
}
|
||||
logger.info("微信第三方平台 获取预授权码 result:{}", response);
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 使用授权码获取授权信息
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user