chenjunkai 6 years ago
parent
commit
29ce852bd1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/OTAEquipment.py

+ 1 - 1
Controller/OTAEquipment.py

@@ -25,7 +25,7 @@ def addNewEquipmentVersion(deviceContent, token,response):
         tko = TokenObject(token)
         tko.valid()
         # 设置语言
-        response.lang = tko.res.get('lang', None)
+        response.lang = tko.lang
         if tko.code == 0:
             userID = tko.userID
             own_permission = ModelService.check_permission(userID=userID, permID=220)