session_key

Brightcells 6 years ago
parent
commit
3de3d9e65b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      api/mch_views.py

+ 4 - 0
api/mch_views.py

@@ -168,6 +168,10 @@ def upgrade_api(request):
168 168
 def getPhoneNumber(request):
169 169
     user_id = request.POST.get('user_id', '')
170 170
 
171
+    # Just for compatible because of store session_key has changed
172
+    if not user_id:
173
+        return ''
174
+
171 175
     wxcfg = WECHAT.get('MINIAPP', {})
172 176
 
173 177
     appid = wxcfg.get('appID')