修复自定义id名

qrnn
youngS 3 years ago
parent ebed9b1aa4
commit bd77da66b7
  1. 2
      fir_ser/api/utils/app/iossignapi.py
  2. 4
      fir_ser/api/utils/app/supersignutils.py

@ -337,6 +337,8 @@ class AppDeveloperApiV2(object):
try: try:
apple_obj = AppStoreConnectApi(self.issuer_id, self.private_key_id, self.p8key) 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.get_all_devices()
if not isinstance(devices_obj_list, list):
devices_obj_list = [devices_obj_list]
if devices_obj_list is not None: if devices_obj_list is not None:
return True, devices_obj_list return True, devices_obj_list
except Exception as e: except Exception as e:

@ -374,9 +374,9 @@ class IosUtils(object):
new_file = os.path.join(MEDIA_ROOT, random_file_name + ".ipa") new_file = os.path.join(MEDIA_ROOT, random_file_name + ".ipa")
properties_info = {} properties_info = {}
if app_obj.new_bundle_id: if app_obj.new_bundle_id:
properties_info = {'-b': app_obj.new_bundle_id} properties_info.update({'-b': app_obj.new_bundle_id})
if app_obj.new_bundle_name: if app_obj.new_bundle_name:
properties_info = {'-n': app_obj.new_bundle_name} properties_info.update({'-n': app_obj.new_bundle_name})
status, result = resign_app_obj.sign(get_profile_full_path(developer_obj, app_obj), org_file, new_file, status, result = resign_app_obj.sign(get_profile_full_path(developer_obj, app_obj), org_file, new_file,
properties_info) properties_info)
if status: if status:

Loading…
Cancel
Save