Browse Source

tc就是cn_tw

guanhailong 2 years ago
parent
commit
7052a4b98c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      AdminController/DeviceManagementController.py

+ 3 - 0
AdminController/DeviceManagementController.py

@@ -700,6 +700,9 @@ class DeviceManagement(View):
         if not all([lang, app_bundle_id, version_number]):
             return response.json(444)
         try:
+            # tc是ios繁体字语言类型
+            if lang == 'tc':
+                lang = 'cn_tw'
             app_bundle_qs = AppBundle.objects.filter(app_bundle_id=app_bundle_id).values(
                 'app_device_type__app_version_number_id').distinct().order_by('app_device_type__app_version_number_id')
             #  判断版本是否存在, 不存在则获取输入版本范围内最接近的输入版本