mirror of
https://gitee.com/dromara/dy-java.git
synced 2024-11-29 18:49:37 +08:00
fix
This commit is contained in:
parent
f84446db56
commit
5ab09d40b2
@ -117,7 +117,7 @@ public class DyAppletClient extends BaseClient {
|
||||
/**
|
||||
* 小程序 getAccessToken
|
||||
*/
|
||||
public DyAppletResult<AppsV2TokenVo> appsV2Token() {
|
||||
public DySimpleResult<AppsV2TokenVo> appsV2Token() {
|
||||
return new AppletTokenHandler(configuration().getAgentByTenantId(tenantId, clientKey)).appsV2Token();
|
||||
}
|
||||
|
||||
|
@ -3,6 +3,7 @@ package com.dyj.applet.handler;
|
||||
import com.dyj.common.config.AgentConfiguration;
|
||||
import com.dyj.common.domain.DyAppletResult;
|
||||
import com.dyj.common.domain.DyResult;
|
||||
import com.dyj.common.domain.DySimpleResult;
|
||||
import com.dyj.common.domain.query.*;
|
||||
import com.dyj.common.domain.vo.*;
|
||||
import com.dyj.common.utils.DyConfigUtils;
|
||||
@ -82,7 +83,7 @@ public class AppletTokenHandler extends AbstractAppletHandler {
|
||||
/**
|
||||
* 小程序 getAccessToken
|
||||
*/
|
||||
public DyAppletResult<AppsV2TokenVo> appsV2Token() {
|
||||
public DySimpleResult<AppsV2TokenVo> appsV2Token() {
|
||||
return getAuthClient().appsV2Token(AppsV2TokenQuery.builder()
|
||||
.appid(agentConfiguration.getClientKey())
|
||||
.secret(agentConfiguration.getClientSecret())
|
||||
|
Loading…
Reference in New Issue
Block a user