Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
huangxh3 2024-02-05 10:15:28 +08:00
commit 360a15b1a7
1 changed files with 9 additions and 0 deletions

View File

@ -26,4 +26,13 @@ public class CTripTokenRequest {
.getData() .getData()
.getAccessToken(); .getAccessToken();
} }
public String getToken(Integer tokenType) {
GetUnionAccessTokenRequest getUnionAccessTokenRequest =
GetUnionAccessTokenRequest.of(C_TRIP_APP_KEY, C_TRIP_APP_SECURITY, tokenType);
return postRequest
.post(tokenUrl, getUnionAccessTokenRequest, AccessTokenResponse.class)
.getData()
.getAccessToken();
}
} }