Message Callback

Brightcells 7 years ago
parent
commit
6fa9d3b890
2 changed files with 6 additions and 2 deletions
  1. 4 0
      pai2/oauth_settings.py
  2. 2 2
      requirements.txt

+ 4 - 0
pai2/oauth_settings.py

@@ -27,3 +27,7 @@ def DJANGO_WE_USERINFO_FUNC(code, state, access_info=None, userinfo=None):
27 27
 
28 28
 def DJANGO_WE_SHARE_FUNC(request, state=None):
29 29
     """ WeChat Share Callback Func """
30
+
31
+
32
+def DJANGO_WE_MESSAGE_CALLBACK_FUNC(request, data):
33
+    """ WeChat Message Callback Func """

+ 2 - 2
requirements.txt

@@ -24,7 +24,7 @@ django-rlog==1.0.7
24 24
 django-shortuuidfield==0.1.3
25 25
 django-six==1.0.4
26 26
 django-uniapi==1.0.1
27
-django-we==1.1.4
27
+django-we==1.1.5
28 28
 djangorestframework==3.7.7
29 29
 furl==1.0.1
30 30
 hiredis==0.2.0
@@ -39,7 +39,7 @@ pywe-oauth==1.0.6
39 39
 pywe-pay==1.0.11
40 40
 pywe-pay-notify==1.0.1
41 41
 pywe-response==1.0.1
42
-pywe-sign==1.0.6
42
+pywe-sign==1.0.7
43 43
 pywe-xml==1.0.0
44 44
 qiniu==7.2.0
45 45
 redis==2.10.6