优化代码,修复bug

super_sign_new
nineven 4 years ago
parent a39f7348b3
commit d7a3506230
  1. 2
      fir_client/src/components/FirDownload.vue
  2. 6
      fir_client/src/components/FirSuperSignBase.vue
  3. 2
      fir_client/src/components/ShortDownload.vue
  4. 2
      fir_ser/api/utils/app/iossignapi.py
  5. 2
      fir_ser/api/utils/app/supersignutils.py
  6. 6
      fir_ser/api/views/supersign.py

@ -79,7 +79,7 @@
<div v-else>
<div class="actions type-ios">
<div><p>正在安装请按 Home 键在桌面查看</p>
<p v-if="!this.currentappinfo.issupersign">
<p v-if="!this.currentappinfo.issupersign && this.mcurrentappinfo.release_type!==1">
<button @click="gomobileaction">
<el-link icon="el-icon-loadings" type="primary"
:underline="false">

@ -586,7 +586,11 @@
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.iosdeveloperFun({"methods": "DELETE", "data": {"email": developer_info.email}});
let data={"email": developer_info.email};
if(developer_info.issuer_id){
data={"issuer_id": developer_info.issuer_id};
}
this.iosdeveloperFun({"methods": "DELETE", "data": data});
}).catch(() => {
this.$message({
type: 'info',

@ -79,7 +79,7 @@
<div v-else>
<div class="actions type-ios">
<div><p>正在安装请按 Home 键在桌面查看</p>
<p v-if="!this.currentappinfo.issupersign">
<p v-if="!this.currentappinfo.issupersign && this.mcurrentappinfo.release_type!==1">
<button @click="gomobileaction">
<a icon="el-icon-loadings" type="primary"
:underline="false">

@ -159,7 +159,7 @@ class AppDeveloperApiV2(object):
key.generate_key(TYPE_RSA, 2048)
# Generate CSR
req = X509Req()
req.get_subject().CN = 'BJ'
req.get_subject().CN = 'FLY APP'
req.get_subject().O = 'FLY APP Inc'
req.get_subject().OU = 'IT'
req.get_subject().L = 'BJ'

@ -429,7 +429,7 @@ class IosUtils(object):
IosUtils.clean_app_by_developer_obj(app_obj, developer_obj)
delete_app_to_dev_and_file(developer_obj, app_obj.id)
IosUtils.clean_udid_by_app_obj(app_obj, developer_obj)
full_path = file_format_path(user_obj, email=developer_obj.email)
full_path = file_format_path(user_obj, get_auth_form_developer(developer_obj))
try:
for root, dirs, files in os.walk(full_path, topdown=False):
for name in files:

@ -198,8 +198,14 @@ class DeveloperView(APIView):
def delete(self, request):
email = request.query_params.get("email", None)
issuer_id = request.query_params.get("issuer_id", None)
if email:
developer_obj = AppIOSDeveloperInfo.objects.filter(user_id=request.user, email=email).first()
elif issuer_id:
developer_obj = AppIOSDeveloperInfo.objects.filter(user_id=request.user, issuer_id=issuer_id).first()
else:
return self.get(request)
if developer_obj:
logger.error("user %s delete developer %s " % (
request.user, developer_obj))

Loading…
Cancel
Save