新增 微信第三方平台 获取预授权码接口

This commit is contained in:
Lemon
2023-07-31 11:50:12 +08:00
parent 7913ea98d8
commit 76f15b8312
2 changed files with 52 additions and 0 deletions

View File

@@ -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;
}
/**
* 使用授权码获取授权信息
*