diff --git a/tenant-platform/src/api/app.ts b/tenant-platform/src/api/app.ts index 9ed9b3e..6152c71 100644 --- a/tenant-platform/src/api/app.ts +++ b/tenant-platform/src/api/app.ts @@ -61,6 +61,7 @@ export interface PushVendorConfig { appId?: string appKey?: string appSecret?: string + packageName?: string masterSecret?: string clientId?: string clientSecret?: string diff --git a/tenant-platform/src/views/push/PushConfigView.vue b/tenant-platform/src/views/push/PushConfigView.vue index 5ca2626..abfe8c3 100644 --- a/tenant-platform/src/views/push/PushConfigView.vue +++ b/tenant-platform/src/views/push/PushConfigView.vue @@ -206,7 +206,7 @@ function updateViewport() { const pushConfig = reactive>({ huawei: { appId: '', appSecret: '' }, - xiaomi: { appId: '', appKey: '', appSecret: '' }, + xiaomi: { appId: '', appKey: '', appSecret: '', packageName: '' }, oppo: { appId: '', appKey: '', masterSecret: '' }, vivo: { appId: '', appKey: '', appSecret: '' }, honor: { appId: '', clientId: '', clientSecret: '' }, @@ -250,11 +250,12 @@ const vendorDefs: VendorDef[] = [ { key: 'xiaomi', label: '小米 MiPush', - hint: '填写 AppId / AppKey / AppSecret。', + hint: '填写 AppId / AppKey / AppSecret 及 Android 包名。', fields: [ { key: 'appId', label: 'AppId' }, { key: 'appKey', label: 'AppKey' }, { key: 'appSecret', label: 'AppSecret' }, + { key: 'packageName', label: 'Android 包名', placeholder: 'com.example.app' }, ], }, { @@ -354,7 +355,7 @@ function applyConfig(raw?: string | null) { function resetPushConfig() { pushConfig.huawei = { appId: '', appSecret: '' } - pushConfig.xiaomi = { appId: '', appKey: '', appSecret: '' } + pushConfig.xiaomi = { appId: '', appKey: '', appSecret: '', packageName: '' } pushConfig.oppo = { appId: '', appKey: '', masterSecret: '' } pushConfig.vivo = { appId: '', appKey: '', appSecret: '' } pushConfig.honor = { appId: '', clientId: '', clientSecret: '' }