From e2d8f60640d9f25bb6d23bd8868f515b68e39b7f Mon Sep 17 00:00:00 2001 From: youngS Date: Thu, 15 Apr 2021 12:31:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=E5=85=85=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_admin/src/api/app.js | 8 + fir_admin/src/views/appinfos/list.vue | 28 +- fir_client/src/components/apps/FirApps.vue | 11 +- .../src/components/user/FirUserOrders.vue | 2 + fir_ser/admin/views/app.py | 4 +- fir_ser/api/base_views.py | 102 +++ .../api/migrations/0037_auto_20210412_1559.py | 1 - .../api/migrations/0038_auto_20210412_1601.py | 1 - .../api/migrations/0039_auto_20210412_1759.py | 1 - .../api/migrations/0040_auto_20210413_1010.py | 18 + fir_ser/api/models.py | 2 +- fir_ser/api/urls.py | 3 +- fir_ser/api/utils/alipay/__init__.py | 861 ++++++++++++++++++ fir_ser/api/utils/alipay/compat.py | 10 + fir_ser/api/utils/alipay/exceptions.py | 26 + fir_ser/api/utils/alipay/loggers.py | 26 + fir_ser/api/utils/alipay/utils.py | 10 + fir_ser/api/utils/pay/ali.py | 73 ++ fir_ser/api/utils/storage/caches.py | 39 +- fir_ser/api/views/apps.py | 27 +- fir_ser/api/views/order.py | 28 +- fir_ser/fir_ser/settings.py | 20 + 22 files changed, 1257 insertions(+), 44 deletions(-) create mode 100644 fir_ser/api/base_views.py create mode 100644 fir_ser/api/migrations/0040_auto_20210413_1010.py create mode 100644 fir_ser/api/utils/alipay/__init__.py create mode 100644 fir_ser/api/utils/alipay/compat.py create mode 100644 fir_ser/api/utils/alipay/exceptions.py create mode 100644 fir_ser/api/utils/alipay/loggers.py create mode 100644 fir_ser/api/utils/alipay/utils.py create mode 100644 fir_ser/api/utils/pay/ali.py diff --git a/fir_admin/src/api/app.js b/fir_admin/src/api/app.js index 91d9ddb..ada0a66 100644 --- a/fir_admin/src/api/app.js +++ b/fir_admin/src/api/app.js @@ -16,6 +16,14 @@ export function updateAppInfo(data) { }) } +export function deleteApp(data) { + return request({ + url: '/app/info', + method: 'delete', + data + }) +} + export function getAppReleaseInfos(query) { return request({ url: '/app/release/info', diff --git a/fir_admin/src/views/appinfos/list.vue b/fir_admin/src/views/appinfos/list.vue index 5f1e41d..316b094 100644 --- a/fir_admin/src/views/appinfos/list.vue +++ b/fir_admin/src/views/appinfos/list.vue @@ -50,7 +50,7 @@ @@ -115,7 +115,7 @@ 查看编辑 - + 删除 @@ -127,7 +127,7 @@