Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
360a15b1a7
|
@ -26,4 +26,13 @@ public class CTripTokenRequest {
|
|||
.getData()
|
||||
.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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue