chenjunkai 6 năm trước cách đây
mục cha
commit
29ce852bd1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)