@@ -11,13 +11,13 @@ from utils.redis.connect import r |
||
11 | 11 |
WECHAT = settings.WECHAT |
12 | 12 |
|
13 | 13 |
|
14 |
-def marketcodedownload(application_id, code_start, code_end, isv_application_id=''): |
|
14 |
+def marketcodedownload(application_id, code_start, code_end, isv_application_id='', iv=''): |
|
15 | 15 |
wxcfg = WECHAT.get('JSAPI', {}) |
16 | 16 |
|
17 | 17 |
appid = wxcfg.get('appID') |
18 | 18 |
secret = wxcfg.get('appsecret') |
19 | 19 |
|
20 |
- codes = applycodedownload(application_id=application_id, code_start=code_start, code_end=code_end, appid=appid, secret=secret, token=None, storage=RedisStorage(r)) |
|
20 |
+ codes = applycodedownload(application_id=application_id, code_start=code_start, code_end=code_end, appid=appid, secret=secret, token=None, storage=RedisStorage(r), iv=iv) |
|
21 | 21 |
|
22 | 22 |
lattice, code, code_index, code_url = '' |
23 | 23 |
for idx, item in enumerate(codes): |
@@ -1,7 +1,7 @@ |
||
1 | 1 |
pywe-component==1.0.1 |
2 | 2 |
pywe-component-preauthcode==1.0.3 |
3 | 3 |
pywe-jssdk==1.1.0 |
4 |
-pywe-marketcode==1.0.1 |
|
4 |
+pywe-marketcode==1.0.2 |
|
5 | 5 |
pywe-membercard==1.0.1 |
6 | 6 |
pywe-miniapp==1.1.5 |
7 | 7 |
pywe-oauth==1.0.7 |