diff --git a/fir_client/src/components/user/FirSuperSignBase.vue b/fir_client/src/components/user/FirSuperSignBase.vue index 4758023..8f5f393 100644 --- a/fir_client/src/components/user/FirSuperSignBase.vue +++ b/fir_client/src/components/user/FirSuperSignBase.vue @@ -161,16 +161,26 @@ @click="isocertcert">手动创建发布证书 - - 删除发布证书 - - 账户激活检测 + + +
+ 删除发布证书并清理签名数据 + + 删除过期发布证书并重新签署新的证书 + +
+ +
+ 保存 取消 @@ -1709,7 +1719,7 @@ export default { developercert(data => { }, {methods: 'FILE', data: {issuer_id: this.editdeveloperinfo.issuer_id}}) }, - isorenewcert() { + isorenewcert(act) { this.$confirm('此操作将永久删除该发布证书, 建议先导出证书。是否继续删除?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -1717,7 +1727,7 @@ export default { }).then(() => { this.iosdeveloperFun({ "methods": "PUT", - "data": {"issuer_id": this.editdeveloperinfo.issuer_id, "act": "renewcert"} + "data": {"issuer_id": this.editdeveloperinfo.issuer_id, "act": act} }); }).catch(() => { this.$message({ diff --git a/fir_ser/xsign/views/supersign.py b/fir_ser/xsign/views/supersign.py index 358854a..9911e84 100644 --- a/fir_ser/xsign/views/supersign.py +++ b/fir_ser/xsign/views/supersign.py @@ -145,14 +145,18 @@ class DeveloperView(APIView): res.code = 1008 res.msg = result.get("return_info") return Response(res.dict) - elif act == "renewcert": + elif act in ["renewcert", "cleancert"]: if developer_obj.certid: # clean developer somethings. remove profile and revoke cert - IosUtils.clean_developer(developer_obj, request.user) + if act == 'cleancert': + IosUtils.clean_developer(developer_obj, request.user) status, result = IosUtils.revoke_developer_cert(developer_obj, request.user) if status: - pass - # status, result = IosUtils.create_developer_cert(developer_obj, request.user) + if act == 'renewcert': + AppUDID.objects.filter(udid__developerid=developer_obj).update( + sign_status=2) + + status, result = IosUtils.create_developer_cert(developer_obj, request.user) # if status: # IosUtils.get_device_from_developer(developer_obj, request.user) # else: