优化超级签逻辑

super_sign_new
nineven 4 years ago
parent a41f6335bc
commit dcdf2aac5c
  1. 6
      fir_ser/api/utils/app/iossignapi.py
  2. 4
      fir_ser/api/utils/apple/appleapiv3.py

@ -219,12 +219,8 @@ class AppDeveloperApiV2(object):
result = {}
try:
apple_obj = AppStoreConnectApi(self.issuer_id, self.private_key_id, self.p8key)
profile_obj = apple_obj.list_profile_by_profile_name(app_id)
if profile_obj:
if apple_obj.delete_profile_by_id(profile_obj.id):
pass
if apple_obj.delete_bundle_by_identifier(bundleId + app_id):
return True, profile_obj
return True, {}
except Exception as e:
logger.error("ios developer delete profile Failed Exception:%s" % e)

@ -753,8 +753,8 @@ class AppStoreConnectApi(DevicesAPI, BundleIDsAPI, BundleIDsCapabilityAPI, Profi
def delete_bundle_by_identifier(self, identifier):
identifier_obj = self.list_bundle_ids_by_identifier(identifier)
if identifier_obj and isinstance(identifier_obj, list):
req = self.delete_bundle_id_by_id(identifier_obj[0].id)
if isinstance(identifier_obj,BundleIds):
req = self.delete_bundle_id_by_id(identifier_obj.id)
if req.status_code == 204:
return True

Loading…
Cancel
Save