chenjunkai 6 năm trước cách đây
mục cha
commit
2eb00d938a
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      Controller/OTAEquipment.py

+ 4 - 1
Controller/OTAEquipment.py

@@ -510,9 +510,12 @@ def getNewVerInterface(request):
         response.lang = tko.lang
         if tko.code == 0:
             try:
-                if lang is not None and lang != '':
+                if lang == 'zh-Hans':
                     equipmentValid = Equipment_Version.objects.filter(code=code, status=1, lang=lang).order_by(
                         '-data_joined')
+                # if lang is not None and lang != '':
+                #     equipmentValid = Equipment_Version.objects.filter(code=code, status=1, lang=lang).order_by(
+                #         '-data_joined')
                 else:
                     equipmentValid = Equipment_Version.objects.filter(code=code, status=1,lang='en').order_by('-data_joined')
             except Exception as e: