feat(push-config): 小米推送配置新增 Android 包名字段
packageName 字段由租户在推送配置页维护,对应 Xiaomi MiPush restricted_package_name,服务端凭此正确路由推送。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
这个提交包含在:
父节点
4df6bd0e79
当前提交
2ac30eb1f3
@ -61,6 +61,7 @@ export interface PushVendorConfig {
|
||||
appId?: string
|
||||
appKey?: string
|
||||
appSecret?: string
|
||||
packageName?: string
|
||||
masterSecret?: string
|
||||
clientId?: string
|
||||
clientSecret?: string
|
||||
|
||||
@ -206,7 +206,7 @@ function updateViewport() {
|
||||
|
||||
const pushConfig = reactive<Required<PushServiceConfig>>({
|
||||
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: '' }
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户