Verified Commit 65b733e7 authored by Cui's avatar Cui

add touser for subscribe struct

parent 8054a7ea
......@@ -300,6 +300,7 @@ func (mcm *MiniprogrampageCustomerMessage) ToFieldsCustomerMessage() (fields log
// 订阅消息
type SubscribeMessage struct {
Touser string `json:"touser" bson:"touser"` // 接收者openid
Appid string `json:"appid" bson:"appid"` // 所需跳转到的小程序appid(该小程序appid必须与发模板消息的公众号是绑定关联关系,并且小程序要求是已发布的)
TemplateId string `json:"template_id" bson:"template_id"` // 订阅消息模板ID
Url string `json:"url" bson:"url"` // 点击消息跳转的链接,需要有ICP备案
......@@ -317,6 +318,7 @@ type SubscribeMessage struct {
func (subM *SubscribeMessage) ToFields() (fields logrus.Fields) {
fields = make(logrus.Fields)
fields["touser"] = subM.Touser
fields["appid"] = subM.Appid
fields["template_id"] = subM.TemplateId
fields["url"] = subM.Url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment