Skip to content

Commit

Permalink
fix: restrict length of payload
Browse files Browse the repository at this point in the history
  • Loading branch information
ppolariss committed Jul 9, 2024
1 parent 5e6af5a commit 19fac90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion push/mipush/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (s *Sender) Send() {
"description": common.StripContent(s.Message.Description, 127),

// 消息的内容。(注意:需要对payload字符串做urlencode处理)
"payload": url.QueryEscape(string(payload)),
"payload": common.StripContent(url.QueryEscape(string(payload)), 4095),

// 可选项,预定义通知栏消息的点击行为。通过设置extra.notify_effect的值以得到不同的预定义点击行为。
// “1″:通知栏点击后打开app的Launcher Activity。
Expand Down

0 comments on commit 19fac90

Please sign in to comment.