@@ -16,6 +16,7 @@ type UserTemplateRecord struct {
SendStatus int
SendType int
UniqueCode string
+ WxAppId string
}
//添加banner
@@ -218,6 +218,7 @@ func toSendTemplateMsg(wxAppId string, data []byte, resource string, sendType in
tr.UniqueCode = uniqueCode
tr.SendType = sendType
+ tr.WxAppId = wxAppId
go func() {
err = models.AddUserTemplateRecord(tr)
if err != nil {