瀏覽代碼

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

pengzhibo168 5 年之前
父節點
當前提交
cd072cc918
共有 1 個文件被更改,包括 17 次插入0 次删除
  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)