From 21ffdea520624631d24d907c0e977148d90685d2 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Tue, 13 Oct 2020 11:15:16 +0800 Subject: [PATCH] fix a bug --- fir_ser/fir_ser/settings.py | 4 ++-- fir_ser/nginx.conf | 2 +- fir_ser/supersign/scripts/apple_api.rb | 8 +++++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/fir_ser/fir_ser/settings.py b/fir_ser/fir_ser/settings.py index 2f91467..bc53fd0 100644 --- a/fir_ser/fir_ser/settings.py +++ b/fir_ser/fir_ser/settings.py @@ -332,8 +332,8 @@ DEFAULT_MOBILEPROVISION = { 'url': 'https://ali-static.jappstore.com/embedded.mobileprovision' }, 'supersign': { - # 超级签名,如果self 为True,则默认用自己的描述文件,否则同企业配置顺序一致 - 'self': True, + # 超级签名,如果self 为True,则默认用自己的描述文件,否则同企业配置顺序一致,自己的配置文件有时候有问题 + 'self': False, 'path': os.path.join(MEDIA_ROOT, 'embedded.mobileprovision'), 'url': 'https://ali-static.jappstore.com/embedded.mobileprovision' } diff --git a/fir_ser/nginx.conf b/fir_ser/nginx.conf index 7b57ca3..25bab57 100644 --- a/fir_ser/nginx.conf +++ b/fir_ser/nginx.conf @@ -34,7 +34,7 @@ http { types_hash_max_size 2048; - client_max_body_size 100m; + client_max_body_size 200m; keepalive_timeout 300; server_names_hash_bucket_size 512; diff --git a/fir_ser/supersign/scripts/apple_api.rb b/fir_ser/supersign/scripts/apple_api.rb index a63ca87..169f5ba 100644 --- a/fir_ser/supersign/scripts/apple_api.rb +++ b/fir_ser/supersign/scripts/apple_api.rb @@ -44,7 +44,13 @@ class DevelopPortalHandle def createDistributionProvision(provisioningClass,appid,provisionName,certid) cert = Spaceship::Portal.certificate.Production.find(id=certid) if !cert then - cert = Spaceship::Portal.certificate.production.all.last + cert = Spaceship::Portal.certificate.production.all.last + if !cert then + cert = Spaceship::Portal.certificate.AppleDistribution.all.last + if !cert then + cert = Spaceship::Portal.certificate.AppleDistribution.find(id=certid) + end + end end profile = provisioningClass.create!(bundle_id: appid,certificate:cert,name:provisionName.split("/")[-1]) return profile