|
@@ -128,7 +128,8 @@ func GetWxTmplConfig(msgType int64) (*WxTmplConfig, error) {
|
|
|
|
|
|
func (stm *WxTmplPush) SendMsg(link, title, detail, date, row4 string, note string) error {
|
|
|
if stm.Config == nil || stm.Config.TmplId == "" || (stm.MgoId != "" && stm.OpenId != "" && stm.Position != "") || link == "" {
|
|
|
- return fmt.Errorf("缺少参数 stm.Config.TmplId:%v stm.MgoId:%v stm.OpenId:%v stm.Position:%v link:%v ", stm.Config.TmplId, stm.MgoId, stm.OpenId, stm.Position, link)
|
|
|
+ log.Println("err=====", stm.Config, stm.MgoId, stm.OpenId, link, AllMsgType())
|
|
|
+ return fmt.Errorf("缺少参数 stm.Config:%v stm.MgoId:%v stm.OpenId:%v stm.Position:%v link:%v ", stm.Config, stm.MgoId, stm.OpenId, stm.Position, link)
|
|
|
}
|
|
|
// 校验推送是否开启
|
|
|
if err := stm.getUserOpenIdAndWxPushState(); err != nil {
|