|
@@ -23,7 +23,7 @@ public abstract class PayPalConfig {
|
|
|
|
|
|
@Bean
|
|
@Bean
|
|
public Map<String, String> paypalSdkConfig(){
|
|
public Map<String, String> paypalSdkConfig(){
|
|
- if("local".equals(NacosProperty.uploadType)){
|
|
|
|
|
|
+ if("local-kj".equals(NacosProperty.activeType)){
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
Map<String, String> sdkConfig = new HashMap<>();
|
|
Map<String, String> sdkConfig = new HashMap<>();
|
|
@@ -33,7 +33,7 @@ public abstract class PayPalConfig {
|
|
|
|
|
|
@Bean
|
|
@Bean
|
|
public OAuthTokenCredential authTokenCredential(){
|
|
public OAuthTokenCredential authTokenCredential(){
|
|
- if("local".equals(NacosProperty.uploadType)){
|
|
|
|
|
|
+ if("local-kj".equals(NacosProperty.activeType)){
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
return new OAuthTokenCredential(getClientId(), getSecret(), paypalSdkConfig());
|
|
return new OAuthTokenCredential(getClientId(), getSecret(), paypalSdkConfig());
|
|
@@ -41,7 +41,7 @@ public abstract class PayPalConfig {
|
|
|
|
|
|
@Bean
|
|
@Bean
|
|
public APIContext apiContext() throws PayPalRESTException {
|
|
public APIContext apiContext() throws PayPalRESTException {
|
|
- if("local".equals(NacosProperty.uploadType)){
|
|
|
|
|
|
+ if("local-kj".equals(NacosProperty.activeType)){
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
String accessToken = authTokenCredential().getAccessToken();
|
|
String accessToken = authTokenCredential().getAccessToken();
|