lazyad 0.0.8__tar.gz → 0.0.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of lazyad might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -66,7 +66,7 @@ def oauth_token3(
66
66
  access_token,
67
67
  app_id,
68
68
  app_secret,
69
- redirect_uri,
69
+ redirect_uri=None,
70
70
  grant_type='authorization_code',
71
71
  auth_code=None,
72
72
  refresh_token=None,
@@ -83,7 +83,6 @@ def oauth_token3(
83
83
  :param redirect_uri: 回调地址
84
84
  :return:
85
85
  """
86
- redirect_uri = f'{redirect_uri}?app_id={app_id}'
87
86
  url = 'https://api.e.qq.com/v3.0/oauth/token'
88
87
  params = {
89
88
  'access_token': access_token,
@@ -99,6 +98,7 @@ def oauth_token3(
99
98
  if refresh_token:
100
99
  params['refresh_token'] = refresh_token
101
100
  if redirect_uri:
101
+ redirect_uri = f'{redirect_uri}?app_id={app_id}'
102
102
  params['redirect_uri'] = redirect_uri
103
103
 
104
104
  for k in params:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -13,7 +13,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
13
13
 
14
14
  setuptools.setup(
15
15
  name="lazyad",
16
- version="0.0.8",
16
+ version="0.0.9",
17
17
  description="基于Python的懒人包-适用于广告投放模块",
18
18
  long_description=long_description,
19
19
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes