|
|
@@ -43,9 +43,10 @@ public class TencentAdsAuthService extends ServiceImpl<TencentAdsAuthMapper, Ten
|
|
|
*/
|
|
|
public String getAuthorizationUrl(String redirectUri, String state) {
|
|
|
String baseUrl = "https://developers.e.qq.com/oauth/authorize";
|
|
|
+ //
|
|
|
return String.format("%s?client_id=%s&redirect_uri=%s&state=%s&scope=",
|
|
|
baseUrl,
|
|
|
- tencentAdsConfig.getAppId(),
|
|
|
+ tencentAdsConfig.getClientId(),
|
|
|
redirectUri,
|
|
|
state);
|
|
|
}
|
|
|
@@ -159,7 +160,7 @@ public class TencentAdsAuthService extends ServiceImpl<TencentAdsAuthMapper, Ten
|
|
|
tencentAds.init(new ApiContextConfig());
|
|
|
|
|
|
// 调用OAuth API获取token
|
|
|
- Long clientId = Long.parseLong(tencentAdsConfig.getAppId());
|
|
|
+ Long clientId = Long.parseLong(tencentAdsConfig.getClientId());
|
|
|
String clientSecret = tencentAdsConfig.getSecret();
|
|
|
String grantType = "authorization_code";
|
|
|
|
|
|
@@ -216,7 +217,7 @@ public class TencentAdsAuthService extends ServiceImpl<TencentAdsAuthMapper, Ten
|
|
|
tencentAds.init(new ApiContextConfig());
|
|
|
|
|
|
// 调用OAuth API刷新token
|
|
|
- Long clientId = Long.parseLong(tencentAdsConfig.getAppId());
|
|
|
+ Long clientId = Long.parseLong(tencentAdsConfig.getClientId());
|
|
|
String clientSecret = tencentAdsConfig.getSecret();
|
|
|
String grantType = "refresh_token";
|
|
|
|