Documentation
¶
Overview ¶
群发消息.
Index ¶
Constants ¶
View Source
const (
EventTypeMassSendJobFinish core.EventType = "MASSSENDJOBFINISH"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MassSendJobFinishEvent ¶
type MassSendJobFinishEvent struct {
XMLName struct{} `xml:"xml" json:"-"`
core.MsgHeader
EventType core.EventType `xml:"Event" json:"Event"` // 事件信息, 此处为 MASSSENDJOBFINISH
MsgId int64 `xml:"MsgId" json:"MsgId"` // 群发的消息ID, 64位整型
// 群发的结构, 为 "send success" 或 "send fail" 或 "err(num)".
// 但 send success 时, 也有可能因用户拒收公众号的消息, 系统错误等原因造成少量用户接收失败.
// err(num) 是审核失败的具体原因, 可能的情况如下:
// err(10001), //涉嫌广告
// err(20001), //涉嫌政治
// err(20004), //涉嫌社会
// err(20002), //涉嫌色情
// err(20006), //涉嫌违法犯罪
// err(20008), //涉嫌欺诈
// err(20013), //涉嫌版权
// err(22000), //涉嫌互推(互相宣传)
// err(21000), //涉嫌其他
Status string `xml:"Status" json:"Status"`
TotalCount int `xml:"TotalCount" json:"TotalCount"` // group_id 下粉丝数, 或者 openid_list 中的粉丝数
// 过滤(过滤是指特定地区, 性别的过滤, 用户设置拒收的过滤; 用户接收已超4条的过滤)后,
// 准备发送的粉丝数, 原则上, FilterCount = SentCount + ErrorCount
FilterCount int `xml:"FilterCount" json:"FilterCount"`
SentCount int `xml:"SentCount" json:"SentCount"` // 发送成功的粉丝数
ErrorCount int `xml:"ErrorCount" json:"ErrorCount"` // 发送失败的粉丝数
}
事件推送群发结果
func GetMassSendJobFinishEvent ¶
func GetMassSendJobFinishEvent(msg *core.MixedMsg) *MassSendJobFinishEvent
Directories
¶
| Path | Synopsis |
|---|---|
|
群发消息给所有用户.
|
群发消息给所有用户. |
|
群发消息给特定分组用户.
|
群发消息给特定分组用户. |
|
根据OpenID列表群发.
|
根据OpenID列表群发. |
|
预览消息.
|
预览消息. |
Click to show internal directories.
Click to hide internal directories.