session_key

Brightcells преди 6 години
родител
ревизия
3de3d9e65b
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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')