This commit is contained in:
danmo 2024-09-24 11:49:10 +08:00
parent f84446db56
commit 5ab09d40b2
2 changed files with 3 additions and 2 deletions

View File

@ -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();
}

View File

@ -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())