Parcourir la source

修复/verifyCode/register返回不是中文问题

chenshibin il y a 4 ans
Parent
commit
ac90af52fd
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      Controller/VerifyCodeController.py

+ 2 - 1
Controller/VerifyCodeController.py

@@ -25,7 +25,8 @@ class VerifyCodeView(View):
     def validate(self, request_dict, operation):
 
         response = ResponseObject()
-
+        lang = request_dict.get('lang', 'en')
+        response.lang = lang
         if operation == 'forget':
             return self.verify_forget(request_dict, response)
         elif operation == 'register':