iv

huangqimin лет %!s(int64=5): %!d(string=назад)
Родитель
Сommit
243a5538bd
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      pre/market_code.py
  2. 1 1
      requirements_pywe.txt

+ 2 - 2
pre/market_code.py

@@ -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 - 1
requirements_pywe.txt

@@ -2,7 +2,7 @@ pywe-card==1.0.0
2 2
 pywe-component==1.0.1
3 3
 pywe-component-preauthcode==1.0.3
4 4
 pywe-jssdk==1.1.0
5
-pywe-marketcode==1.0.1
5
+pywe-marketcode==1.0.3
6 6
 pywe-membercard==1.0.3
7 7
 pywe-miniapp==1.1.5
8 8
 pywe-oauth==1.0.7