-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path0_基础配置_开关.json
168 lines (168 loc) · 3.36 KB
/
0_基础配置_开关.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"version": "0.1.0",
"configs": {
"干掉运营消息": [
{
"metaInfo": {
"extra": {
"channel_id": null,
"__mipush_tag_notify": null
}
},
"operation": "ignore",
"stop": false
}
],
"允许运营消息": [
{
"metaInfo": {
"extra": {
"channel_id": null
}
},
"newMetaInfo": {
"extra": {
"__mipush_tag_notify": ""
}
},
"stop": false
}
],
"禁止通知成组": [
{
"metaInfo": {
"id": "(?<id>.*)"
},
"newMetaInfo": {
"extra": {
"notification_group": "${id}"
}
},
"stop": false
}
],
"按标题成组": [
{
"metaInfo": {
"title": "(?<title>.*)"
},
"newMetaInfo": {
"extra": {
"notification_group": "${title}"
}
},
"stop": false
}
],
"移除通知副标题": [
{
"metaInfo": {
"extra": {
"__mi_push_sub_text": null,
"__mipush_tag_sub": null
}
},
"newMetaInfo": {
"extra": {
"__mi_push_sub_text": ""
}
},
"stop": false
}
],
"允许通知副标题": [
{
"metaInfo": {
"extra": {
"__mi_push_sub_text": null
}
},
"newMetaInfo": {
"extra": {
"__mipush_tag_sub": ""
}
},
"stop": false
}
],
"大图标显示成圆形": [
{
"newMetaInfo": {
"extra": {
"__mi_push_round_large_icon": ""
}
},
"stop": false
}
],
"将标题相同的通知视为同一会话": [
{
"metaInfo": {
"title": "(?<title>[\\s\\S]*)"
},
"newMetaInfo": {
"notifyId": [
"hash",
[
"$",
"title"
]
]
},
"stop": false
}
],
"直接打开意图": [
{
"match": {
"metaInfo": {
"extra": {
"__mipush_tag_open_directly": null
}
}
},
"replace": {
"metaInfo": {
"extra": {
"use_clicked_activity": "true"
}
}
},
"stop": false
}
],
"禁止直接打开意图": [
{
"replace": {
"metaInfo": {
"extra": {
"use_clicked_activity": "false",
"__mipush_tag_open_directly": ""
}
}
},
"stop": false
}
],
"取 payload 作为 intent": [
{
"match": {
"pushAction": {
"message": {
"payload": "^(?<intent>\\w+://[\\s\\S]+)"
}
}
},
"replace": {
"metaInfo": {
"extra": {
"intent_uri": "${intent}",
"notify_effect": "2"
}
}
},
"stop": false
}
]
}
}