|
@@ -27,6 +27,10 @@ type SendWxCategoryTemplate struct {
|
|
|
|
|
|
// 推送类目模板消息
|
|
// 推送类目模板消息
|
|
func SendCategoryTemplateMsg(sendInfo *SendWxCategoryTemplate) (err error) {
|
|
func SendCategoryTemplateMsg(sendInfo *SendWxCategoryTemplate) (err error) {
|
|
|
|
+ if len(sendInfo.OpenIdArr) == 0 {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
postData, err := json.Marshal(sendInfo)
|
|
postData, err := json.Marshal(sendInfo)
|
|
if err != nil {
|
|
if err != nil {
|
|
go utils.SendAlarmMsg("SendCategoryTemplateMsg json.Marshal Err:"+err.Error(), 1)
|
|
go utils.SendAlarmMsg("SendCategoryTemplateMsg json.Marshal Err:"+err.Error(), 1)
|