|
|
@@ -7,14 +7,16 @@ def DJANGO_WE_CFG_FUNC(request, state=None):
|
7
|
7
|
|
8
|
8
|
def DJANGO_WE_QUOTE_STATE_FUNC(request, state):
|
9
|
9
|
""" WeChat Quote Callback Func """
|
10
|
|
- from utils.redis.connect import r
|
11
|
|
- return r.quote(state)
|
|
10
|
+ # from utils.redis.connect import r
|
|
11
|
+ # return r.quote(state, short_uuid=True)
|
|
12
|
+ return state
|
12
|
13
|
|
13
|
14
|
|
14
|
15
|
def DJANGO_WE_UNQUOTE_STATE_FUNC(request, state):
|
15
|
16
|
""" WeChat UnQuote Callback Func """
|
16
|
|
- from utils.redis.connect import r
|
17
|
|
- return r.unquote(state)
|
|
17
|
+ # from utils.redis.connect import r
|
|
18
|
+ # return r.unquote(state, buf=True)
|
|
19
|
+ return state
|
18
|
20
|
|
19
|
21
|
|
20
|
22
|
def DJANGO_WE_BASE_FUNC(code, state, access_info=None):
|