Procházet zdrojové kódy

Merge branch 'dev' of http://192.168.136.45:3000/SERVER/AnsjerServer into dev

pengzhibo168 před 5 roky
rodič
revize
cd072cc918
1 změnil soubory, kde provedl 17 přidání a 0 odebrání
  1. 17 0
      Controller/UserController.py

+ 17 - 0
Controller/UserController.py

@@ -1013,6 +1013,23 @@ class v3registerView(TemplateView):
             print(password)
         except Exception as e:
             return response.json(111)
+        try:
+            for i in range(1, 4):
+                if i == 1:
+                    authcode = base64.b64decode(authcode)
+                    authcode = authcode.decode('utf-8')
+                    authcode = authcode[1:-1]
+                if i == 2:
+                    authcode = base64.b64decode(authcode)
+                    authcode = authcode.decode('utf-8')
+                    authcode = authcode[2:-2]
+                if i == 3:
+                    authcode = base64.b64decode(authcode)
+                    authcode = authcode.decode('utf-8')
+                    authcode = authcode[3:-3]
+            print(authcode)
+        except Exception as e:
+            return response.json(121)
         else:
             if not lang:
                 lang = request_dict.get('language', None)