浏览代码

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

chenshibin 4 年之前
父节点
当前提交
ac90af52fd
共有 1 个文件被更改,包括 2 次插入1 次删除
  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':