xingzai 2 ani în urmă
părinte
comite
a6a37695a0
1 a modificat fișierele cu 13 adăugiri și 13 ștergeri
  1. 13 13
      controllers/activity.go

+ 13 - 13
controllers/activity.go

@@ -3715,20 +3715,20 @@ func (this *ActivityCoAntroller) SpecialSignupAdd() {
 				}
 			}
 			// 给芳姐发消息
-			cnf, _ := models.GetConfigByCode("tpl_msg")
+			//cnf, _ := models.GetConfigByCode("tpl_msg")
 			actList, _ := models.GetActivityListSpecialByActivityId(activityId)
-			if cnf != nil {
-				openIpItem, _ := models.GetUserRecordByMobile(4, cnf.ConfigValue)
-				if openIpItem != nil && openIpItem.OpenId != "" {
-					if len(actList) == 5 {
-						var companyName string
-						for _, v := range actList {
-							companyName += "【" + v.CompanyName + "】"
-						}
-						go services.SendSpecialTemplateMsg(companyName, "", "", activityInfo.ResearchTheme, "", openIpItem)
-					}
-				}
-			}
+			//if cnf != nil {
+			//	openIpItem, _ := models.GetUserRecordByMobile(4, cnf.ConfigValue)
+			//	if openIpItem != nil && openIpItem.OpenId != "" {
+			//		if len(actList) == 5 {
+			//			var companyName string
+			//			for _, v := range actList {
+			//				companyName += "【" + v.CompanyName + "】"
+			//			}
+			//			go services.SendSpecialTemplateMsg(companyName, "", "", activityInfo.ResearchTheme, "", openIpItem)
+			//		}
+			//	}
+			//}
 			//感兴趣人数到达10人时,模板消息发送给活动负责人
 			if len(actList) == 10 {
 				go services.SendWxMsgActivitySpecial10(activityInfo)