|
@@ -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)
|