Browse Source

no message

xingzai 9 months ago
parent
commit
322bc5b195
1 changed files with 4 additions and 0 deletions
  1. 4 0
      services/wx_template_msg.go

+ 4 - 0
services/wx_template_msg.go

@@ -427,6 +427,10 @@ func SendActivitieCancelSignTemplateMsg(user *models.WxUserItem, activityDetail
 		err = errors.New("GetUserRecordListByMobile, Err: " + e.Error() + cnf.ConfigValue)
 		return
 	}
+	if len(openIdList) == 0 {
+		err = nil
+		return
+	}
 	keyword1 := user.RealName + "--" + user.CompanyName + "(" + sellerItemQy.RealName + ")"
 	keyword2 := user.Mobile
 	keyword3 := time.Now().Format(utils.FormatDateTime)