super_signature
nineven 5 years ago
parent 02cd05eb7e
commit 060f6991d6
  1. 2
      fir_ser/api/utils/app/iossignapi.py
  2. 10
      fir_ser/api/utils/app/supersignutils.py
  3. 1
      fir_ser/uwsgi.conf

@ -73,7 +73,7 @@ class AppDeveloperApi(object):
def get_profile(self, bundleId, app_id, device_udid, device_name, provisionName): def get_profile(self, bundleId, app_id, device_udid, device_name, provisionName):
self.cmd = self.cmd + " profile add '%s' '%s' '%s' '%s' '%s' '%s'" % ( self.cmd = self.cmd + " profile add '%s' '%s' '%s' '%s' '%s' '%s'" % (
bundleId, app_id, device_udid, device_name, self.certid, provisionName) bundleId, app_id, device_udid, device_name, self.certid, provisionName)
result = exec_shell(self.cmd) return exec_shell(self.cmd)
def del_profile(self, bundleId, app_id): def del_profile(self, bundleId, app_id):
self.cmd = self.cmd + " profile del '%s' '%s'" % (bundleId, app_id) self.cmd = self.cmd + " profile del '%s' '%s'" % (bundleId, app_id)

@ -156,7 +156,7 @@ class IosUtils(object):
app_id = self.app_obj.app_id app_id = self.app_obj.app_id
device_udid = self.udid_info.get('udid') device_udid = self.udid_info.get('udid')
device_name = self.udid_info.get('product') device_name = self.udid_info.get('product')
app_api_obj.get_profile(bundleId, app_id, device_udid, device_name, self.get_profile_full_path()) return app_api_obj.get_profile(bundleId, app_id, device_udid, device_name, self.get_profile_full_path())
def get_profile_full_path(self): def get_profile_full_path(self):
cert_dir_name = make_app_uuid(self.user_obj, self.auth.get("username")) cert_dir_name = make_app_uuid(self.user_obj, self.auth.get("username"))
@ -175,7 +175,13 @@ class IosUtils(object):
logger.info("udid %s exists app_id %s" % (self.udid_info.get('udid'), self.app_obj)) logger.info("udid %s exists app_id %s" % (self.udid_info.get('udid'), self.app_obj))
return return
logger.info("udid %s not exists app_id %s ,need sign" % (self.udid_info.get('udid'), self.app_obj)) logger.info("udid %s not exists app_id %s ,need sign" % (self.udid_info.get('udid'), self.app_obj))
self.download_profile() status, result = self.download_profile()
if not status:
logger.error("udid %s app %s developer %s sign failed %s" % (
self.udid_info.get('udid'), self.app_obj, self.developer_obj, result))
self.developer_obj.is_actived = False
self.developer_obj.save()
return
file_format_path_name = file_format_path(self.user_obj, self.auth) file_format_path_name = file_format_path(self.user_obj, self.auth)
my_local_key = file_format_path_name + ".key" my_local_key = file_format_path_name + ".key"

@ -23,6 +23,7 @@ threads = 4
#monitor uwsgi status 通过该端口可以监控 uwsgi 的负载情况 #monitor uwsgi status 通过该端口可以监控 uwsgi 的负载情况
stats = 127.0.0.1:9191 stats = 127.0.0.1:9191
# 如果以nginx用户运行,则需要授权 ruby 权限 chmod ug+s /usr/local/rvm/rubies/ruby-2.7.0/bin/ruby /usr/bin/isign 否则,会导致登录信息保存失败
uid=nginx uid=nginx
gid=nginx gid=nginx

Loading…
Cancel
Save