优化代码

pull/6/head
nineven 4 years ago
parent 46a89416bc
commit 0c0e32bb23
  1. 4
      fir_ser/api/utils/app/iossignapi.py

@ -213,8 +213,8 @@ class AppDeveloperApiV2(object):
profile_obj = apple_obj.create_profile(bundle_obj.id, auth.get('certid'), provisionName.split("/")[-1]) profile_obj = apple_obj.create_profile(bundle_obj.id, auth.get('certid'), provisionName.split("/")[-1])
if profile_obj: if profile_obj:
n = base64.b64decode(profile_obj.profileContent) n = base64.b64decode(profile_obj.profileContent)
if not os.path.isdir(os.path.basename(provisionName)): if not os.path.isdir(os.path.dirname(provisionName)):
os.makedirs(os.path.basename(provisionName)) os.makedirs(os.path.dirname(provisionName))
with open(provisionName, 'wb') as f: with open(provisionName, 'wb') as f:
f.write(n) f.write(n)
return True, profile_obj.profileContent return True, profile_obj.profileContent

Loading…
Cancel
Save