超级签名重签功能

xsign
nineven 3 years ago
parent 96295132d9
commit 75fecbca10
  1. 22
      fir_client/src/components/user/FirSuperSignBase.vue
  2. 10
      fir_ser/xsign/views/supersign.py

@ -161,16 +161,26 @@
@click="isocertcert">手动创建发布证书 @click="isocertcert">手动创建发布证书
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<el-button v-if="isedit && editdeveloperinfo.status!==0" size="small" type="success"
@click="activedeveloperFun(editdeveloperinfo,'checkauth')">账户激活检测
</el-button>
<el-divider/>
<el-tooltip content="清理发布证书,如果发布证书过期时间大于3天,将不会删除开发者发布证书,发布证书只能同时创建两个,请谨慎操作"> <el-tooltip content="清理发布证书,如果发布证书过期时间大于3天,将不会删除开发者发布证书,发布证书只能同时创建两个,请谨慎操作">
<div>
<el-button v-if="isedit && editdeveloperinfo.certid" <el-button v-if="isedit && editdeveloperinfo.certid"
size="small" size="small"
type="danger" type="danger"
@click="isorenewcert">删除发布证书 @click="isorenewcert('cleancert')">删除发布证书并清理签名数据
</el-button> </el-button>
</el-tooltip> <el-button v-if="isedit && editdeveloperinfo.certid"
<el-button v-if="isedit && editdeveloperinfo.status!==0" size="small" type="success" size="small"
@click="activedeveloperFun(editdeveloperinfo,'checkauth')">账户激活检测 type="danger"
@click="isorenewcert('renewcert')">删除过期发布证书并重新签署新的证书
</el-button> </el-button>
</div>
</el-tooltip>
<el-divider/>
<!-- <el-button v-if="isedit && editdeveloperinfo.is_actived" size="small" @click="bindAppletoapp(editdeveloperinfo)">专属应用</el-button>--> <!-- <el-button v-if="isedit && editdeveloperinfo.is_actived" size="small" @click="bindAppletoapp(editdeveloperinfo)">专属应用</el-button>-->
<el-button @click="updateorcreate">保存</el-button> <el-button @click="updateorcreate">保存</el-button>
<el-button @click="canceledit">取消</el-button> <el-button @click="canceledit">取消</el-button>
@ -1709,7 +1719,7 @@ export default {
developercert(data => { developercert(data => {
}, {methods: 'FILE', data: {issuer_id: this.editdeveloperinfo.issuer_id}}) }, {methods: 'FILE', data: {issuer_id: this.editdeveloperinfo.issuer_id}})
}, },
isorenewcert() { isorenewcert(act) {
this.$confirm('此操作将永久删除该发布证书, 建议先导出证书。是否继续删除?', '提示', { this.$confirm('此操作将永久删除该发布证书, 建议先导出证书。是否继续删除?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -1717,7 +1727,7 @@ export default {
}).then(() => { }).then(() => {
this.iosdeveloperFun({ this.iosdeveloperFun({
"methods": "PUT", "methods": "PUT",
"data": {"issuer_id": this.editdeveloperinfo.issuer_id, "act": "renewcert"} "data": {"issuer_id": this.editdeveloperinfo.issuer_id, "act": act}
}); });
}).catch(() => { }).catch(() => {
this.$message({ this.$message({

@ -145,14 +145,18 @@ class DeveloperView(APIView):
res.code = 1008 res.code = 1008
res.msg = result.get("return_info") res.msg = result.get("return_info")
return Response(res.dict) return Response(res.dict)
elif act == "renewcert": elif act in ["renewcert", "cleancert"]:
if developer_obj.certid: if developer_obj.certid:
# clean developer somethings. remove profile and revoke cert # clean developer somethings. remove profile and revoke cert
if act == 'cleancert':
IosUtils.clean_developer(developer_obj, request.user) IosUtils.clean_developer(developer_obj, request.user)
status, result = IosUtils.revoke_developer_cert(developer_obj, request.user) status, result = IosUtils.revoke_developer_cert(developer_obj, request.user)
if status: if status:
pass if act == 'renewcert':
# status, result = IosUtils.create_developer_cert(developer_obj, request.user) AppUDID.objects.filter(udid__developerid=developer_obj).update(
sign_status=2)
status, result = IosUtils.create_developer_cert(developer_obj, request.user)
# if status: # if status:
# IosUtils.get_device_from_developer(developer_obj, request.user) # IosUtils.get_device_from_developer(developer_obj, request.user)
# else: # else:

Loading…
Cancel
Save