From 0d42223af250f96f40d13d476ed94f637d92ff54 Mon Sep 17 00:00:00 2001 From: nineven Date: Sun, 31 Jan 2021 15:22:27 +0800 Subject: [PATCH] formcat code --- fir_client/public/config.js | 16 ++-- .../src/components/FirSuperSignBase.vue | 22 ++--- fir_client/src/components/ShortDownload.vue | 2 +- .../api/migrations/0014_auto_20210129_1600.py | 1 - .../api/migrations/0015_auto_20210129_1730.py | 1 - fir_ser/api/utils/app/iossignapi.py | 95 ++++++++++--------- fir_ser/api/utils/app/supersignutils.py | 28 ++++-- fir_ser/api/utils/apple/appleapiv3.py | 5 +- fir_ser/api/utils/utils.py | 2 +- fir_ser/api/views/supersign.py | 2 +- 10 files changed, 90 insertions(+), 84 deletions(-) diff --git a/fir_client/public/config.js b/fir_client/public/config.js index 907699e..09f3bf3 100644 --- a/fir_client/public/config.js +++ b/fir_client/public/config.js @@ -1,14 +1,14 @@ window.g = { baseUrl: 'https://app.hehelucky.cn', - footer:{ - copyright:'Copyright © 2017-2020 第九系艾文 版权所有.', - ipcBeiAn:{ - url:'https://beian.miit.gov.cn', - text:'豫ICP备15004336号', + footer: { + copyright: 'Copyright © 2017-2020 第九系艾文 版权所有.', + ipcBeiAn: { + url: 'https://beian.miit.gov.cn', + text: '豫ICP备15004336号', }, - gongAnBeiAn:{ - url:'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=41142202000049', - text:'豫公网安备 41142202000049号', + gongAnBeiAn: { + url: 'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=41142202000049', + text: '豫公网安备 41142202000049号', }, } diff --git a/fir_client/src/components/FirSuperSignBase.vue b/fir_client/src/components/FirSuperSignBase.vue index 425a0b4..0dfd521 100644 --- a/fir_client/src/components/FirSuperSignBase.vue +++ b/fir_client/src/components/FirSuperSignBase.vue @@ -500,9 +500,9 @@ }) }, syncdevices() { - let data={"email": this.editdeveloperinfo.email, "act": "syncdevice"}; - if(this.editdeveloperinfo.issuer_id){ - data={"issuer_id": this.editdeveloperinfo.issuer_id, "act": "syncdevice"}; + let data = {"email": this.editdeveloperinfo.email, "act": "syncdevice"}; + if (this.editdeveloperinfo.issuer_id) { + data = {"issuer_id": this.editdeveloperinfo.issuer_id, "act": "syncdevice"}; } this.iosdeveloperFun({ "methods": "PUT", @@ -510,9 +510,9 @@ }); }, isocertcert() { - let data={"email": this.editdeveloperinfo.email, "act": "ioscert"}; - if(this.editdeveloperinfo.issuer_id){ - data={"issuer_id": this.editdeveloperinfo.issuer_id, "act": "ioscert"}; + let data = {"email": this.editdeveloperinfo.email, "act": "ioscert"}; + if (this.editdeveloperinfo.issuer_id) { + data = {"issuer_id": this.editdeveloperinfo.issuer_id, "act": "ioscert"}; } this.iosdeveloperFun({ "methods": "PUT", @@ -531,11 +531,11 @@ } }, activedeveloperFun(developer, act) { - if(developer.email){ + if (developer.email) { this.iosdeveloperFun({"methods": "PUT", "data": {"email": developer.email, "act": act}}); this.codeactiveVisible = true; this.authemail = developer.email; - }else if(developer.issuer_id){ + } else if (developer.issuer_id) { this.iosdeveloperFun({"methods": "PUT", "data": {"issuer_id": developer.issuer_id, "act": act}}); this.codeactiveVisible = true; } @@ -586,9 +586,9 @@ cancelButtonText: '取消', type: 'warning' }).then(() => { - let data={"email": developer_info.email}; - if(developer_info.issuer_id){ - data={"issuer_id": developer_info.issuer_id}; + 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(() => { diff --git a/fir_client/src/components/ShortDownload.vue b/fir_client/src/components/ShortDownload.vue index f9a67e1..98309fa 100644 --- a/fir_client/src/components/ShortDownload.vue +++ b/fir_client/src/components/ShortDownload.vue @@ -80,7 +80,7 @@

正在安装,请按 Home 键在桌面查看

-