Explorar o código

修改云存问卷响应对应语言msg

zhangdongming %!s(int64=3) %!d(string=hai) anos
pai
achega
6a69722398
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/Surveys/CloudStorageController.py

+ 1 - 1
Controller/Surveys/CloudStorageController.py

@@ -42,7 +42,7 @@ class CloudStorageView(View):
     def validation(self, request_dict, request, operation):
         logger = logging.getLogger('info')
         token = TokenObject(request.META.get('HTTP_AUTHORIZATION'))
-        response = ResponseObject()
+        response = ResponseObject(token.lang) if token.lang else ResponseObject()
         if token.code != 0:
             return response.json(token.code)
         userID = token.userID