From 651e89527e19bbb75c4ea016de10d1b27e0b81ab Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Mon, 13 Jul 2026 16:23:42 +0800 Subject: [PATCH] fix(push): add OPPO client app secret configuration --- tenant-platform/src/api/app.ts | 1 + tenant-platform/src/views/push/PushConfigView.vue | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tenant-platform/src/api/app.ts b/tenant-platform/src/api/app.ts index e095458..93d084d 100644 --- a/tenant-platform/src/api/app.ts +++ b/tenant-platform/src/api/app.ts @@ -80,6 +80,7 @@ export interface HuaweiPushVendorConfig { export interface OppoPushVendorConfig { appId?: string appKey?: string + appSecret?: string masterSecret?: string } diff --git a/tenant-platform/src/views/push/PushConfigView.vue b/tenant-platform/src/views/push/PushConfigView.vue index 3733ca7..d4d4b74 100644 --- a/tenant-platform/src/views/push/PushConfigView.vue +++ b/tenant-platform/src/views/push/PushConfigView.vue @@ -306,11 +306,12 @@ const vendorDefs: VendorDef[] = [ { key: 'oppo', label: 'OPPO 推送', - hint: '仅保留 AppKey / MasterSecret。通道配置与优先级在 profiles 中维护。', + hint: 'AppKey / AppSecret 用于 Android 客户端注册,MasterSecret 仅用于服务端发送。', platforms: ['ANDROID'], fields: [ { key: 'appId', label: 'AppId' }, { key: 'appKey', label: 'AppKey' }, + { key: 'appSecret', label: 'AppSecret' }, { key: 'masterSecret', label: 'MasterSecret' }, ], }, @@ -362,7 +363,7 @@ function createEmptyVendors(): PushVendorsState { return { huawei: { appId: '', appSecret: '' }, xiaomi: { appId: '', appKey: '', appSecret: '' }, - oppo: { appId: '', appKey: '', masterSecret: '' }, + oppo: { appId: '', appKey: '', appSecret: '', masterSecret: '' }, vivo: { appId: '', appKey: '', appSecret: '' }, honor: { appId: '', clientId: '', clientSecret: '' }, harmony: { appId: '', appSecret: '' },