浏览代码

添加语言

linhaohong 1 年之前
父节点
当前提交
86efe9a76d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Controller/UserController.py

+ 2 - 1
Controller/UserController.py

@@ -5102,7 +5102,8 @@ class ChangeAccountInfoView(View):
         return self.validation(request_dict, request, operation)
 
     def validation(self, request_dict, request, operation):
-        response = ResponseObject()
+        language = request_dict.get('lang', 'en')
+        response = ResponseObject(language)
         if operation == 'verifyCode':
             return self.verify_code(request_dict, response)
         elif operation == 'changePhone':