Procházet zdrojové kódy

Merge remote-tracking branch 'remotes/origin/Bin' into dev

tanghongbin před 5 roky
rodič
revize
35ac4894e5
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      Controller/UserController.py

+ 2 - 1
Controller/UserController.py

@@ -1780,7 +1780,7 @@ class v3LoginView(TemplateView):
             res['userEmail'] = users['userEmail'] if users['userEmail'] is not None else ''
             res['phone'] = users['phone'] if users['phone'] is not None else ''
             res['fingerprint_enable'] = users['fingerprint_enable']
-            res['fingerprint_key'] = users['fingerprint_key']
+            res['fingerprint_key'] = CommonService.encode_data(content=users['fingerprint_key'], start=2)
             return response.json(0, res)
         else:
             return response.json(tko.code)
@@ -3238,6 +3238,7 @@ class v3LoginByFingerprintView(View):
                             res['username'] = users['username'] if users['username'] is not None else ''
                             res['userEmail'] = users['userEmail'] if users['userEmail'] is not None else ''
                             res['phone'] = users['phone'] if users['phone'] is not None else ''
+                            res['fingerprint_enable'] = users['fingerprint_enable']
                             res['fingerprint_key'] = CommonService.encode_data(content=users['fingerprint_key'], start=2)
                             return response.json(0, res)
                         else: