fix(push): add OPPO client app secret configuration

这个提交包含在:
XuqmGroup 2026-07-13 16:23:42 +08:00
父节点 dd3f7873db
当前提交 651e89527e
共有 2 个文件被更改,包括 4 次插入2 次删除

查看文件

@ -80,6 +80,7 @@ export interface HuaweiPushVendorConfig {
export interface OppoPushVendorConfig { export interface OppoPushVendorConfig {
appId?: string appId?: string
appKey?: string appKey?: string
appSecret?: string
masterSecret?: string masterSecret?: string
} }

查看文件

@ -306,11 +306,12 @@ const vendorDefs: VendorDef[] = [
{ {
key: 'oppo', key: 'oppo',
label: 'OPPO 推送', label: 'OPPO 推送',
hint: '仅保留 AppKey / MasterSecret。通道配置与优先级在 profiles 中维护。', hint: 'AppKey / AppSecret 用于 Android 客户端注册,MasterSecret 仅用于服务端发送。',
platforms: ['ANDROID'], platforms: ['ANDROID'],
fields: [ fields: [
{ key: 'appId', label: 'AppId' }, { key: 'appId', label: 'AppId' },
{ key: 'appKey', label: 'AppKey' }, { key: 'appKey', label: 'AppKey' },
{ key: 'appSecret', label: 'AppSecret' },
{ key: 'masterSecret', label: 'MasterSecret' }, { key: 'masterSecret', label: 'MasterSecret' },
], ],
}, },
@ -362,7 +363,7 @@ function createEmptyVendors(): PushVendorsState {
return { return {
huawei: { appId: '', appSecret: '' }, huawei: { appId: '', appSecret: '' },
xiaomi: { appId: '', appKey: '', appSecret: '' }, xiaomi: { appId: '', appKey: '', appSecret: '' },
oppo: { appId: '', appKey: '', masterSecret: '' }, oppo: { appId: '', appKey: '', appSecret: '', masterSecret: '' },
vivo: { appId: '', appKey: '', appSecret: '' }, vivo: { appId: '', appKey: '', appSecret: '' },
honor: { appId: '', clientId: '', clientSecret: '' }, honor: { appId: '', clientId: '', clientSecret: '' },
harmony: { appId: '', appSecret: '' }, harmony: { appId: '', appSecret: '' },