苹果开发账户仅同步enable设备

pull/6/head
nineven 4 years ago
parent a5dd4c7759
commit 21fe5665e2
  1. 2
      fir_ser/api/utils/app/iossignapi.py
  2. 6
      fir_ser/api/utils/apple/appleapiv3.py

@ -269,7 +269,7 @@ class AppDeveloperApiV2(object):
result = {}
try:
apple_obj = AppStoreConnectApi(self.issuer_id, self.private_key_id, self.p8key)
devices_obj_list = apple_obj.get_all_devices()
devices_obj_list = apple_obj.list_enabled_devices()
if devices_obj_list:
return True, devices_obj_list
except Exception as e:

@ -678,6 +678,10 @@ class AppStoreConnectApi(DevicesAPI, BundleIDsAPI, BundleIDsCapabilityAPI, Profi
req = self.list_devices()
return self.__device_store(req)
def list_enabled_devices(self):
req = self.list_devices()
return self.__device_store(req)
def get_all_bundle_ids(self):
req = self.list_bundle_ids()
return self.__bundle_ids_store(req)
@ -763,7 +767,7 @@ class AppStoreConnectApi(DevicesAPI, BundleIDsAPI, BundleIDsCapabilityAPI, Profi
if device_id_list is None:
device_id_list = []
if not device_id_list:
device_id_list = [device.id for device in self.get_all_devices()]
device_id_list = [device.id for device in self.list_enabled_devices()]
profile_obj = self.list_profile_by_profile_name(profile_name)
if isinstance(profile_obj, Profiles):

Loading…
Cancel
Save