Эх сурвалжийг харах

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

chenshibin 4 жил өмнө
parent
commit
ac90af52fd

+ 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':