修复前端应用超级签名展示异常问题

dependabot/npm_and_yarn/fir_admin/decode-uri-component-0.2.2
isummer 2 years ago
parent 42451f2cb0
commit e0599585be
  1. 14
      fir_ser/api/utils/serializer.py
  2. 10
      fir_ser/cli.py

@ -166,15 +166,11 @@ class AppsSerializer(serializers.ModelSerializer):
def get_sign_type_choice(self, obj): def get_sign_type_choice(self, obj):
return get_choices_dict(obj.supersign_type_choices) return get_choices_dict(obj.supersign_type_choices)
# supersign_used_number = serializers.IntegerField(default=0) count = serializers.IntegerField(default=0)
# developer_used_count = serializers.IntegerField(default=0)
# def get_supersign_used_number(self, obj): private_developer_number = serializers.IntegerField(default=0)
# return models.APPSuperSignUsedInfo.objects.filter(app_id=obj).all().count() private_developer_used_number = serializers.IntegerField(default=0)
# supersign_used_number = serializers.IntegerField(default=0)
# developer_used_count = serializers.IntegerField(default=0)
#
# def get_developer_used_count(self, obj):
# return models.DeveloperAppID.objects.filter(app_id=obj).all().count()
screenshots = serializers.SerializerMethodField() screenshots = serializers.SerializerMethodField()

@ -112,9 +112,11 @@ class FLYCliSer(object):
req = requests.put(url, json=data, headers=self._header) req = requests.put(url, json=data, headers=self._header)
if req.status_code == 200: if req.status_code == 200:
if req.json()['code'] == 1000: if req.json()['code'] == 1000:
print("应用 %s %s 上传更新成功,下载连接 %s" % ( master_download_url = req.json().get('data', {}).get('preview_url')
data.get('appname'), data.get('bundleid'), req.json()['data'].get('preview_url'))) print("应用 %s %s 上传更新成功" % (data.get('appname'), data.get('bundleid')))
return print("当前应用下载连接:", master_download_url)
print("当前版本下载连接:", master_download_url + '?release_id=' + data.get('upload_key').split('.')[0])
return master_download_url
raise AssertionError(req.text) raise AssertionError(req.text)
def upload_local_storage(self, upload_key, upload_token, app_id, file_path): def upload_local_storage(self, upload_key, upload_token, app_id, file_path):
@ -201,7 +203,7 @@ class FLYCliSer(object):
"udid": appinfo.get('udid', []), "udid": appinfo.get('udid', []),
"type": appinfo['type'], "type": appinfo['type'],
} }
self.analyse({**app_data, **upcretsdata}) return self.analyse({**app_data, **upcretsdata})
class AppInfo(object): class AppInfo(object):

Loading…
Cancel
Save