zwxi 10 months ago
parent
commit
9005dd9020
1 changed files with 11 additions and 1 deletions
  1. 11 1
      services/wechat_send_category_template_msg.go

+ 11 - 1
services/wechat_send_category_template_msg.go

@@ -723,7 +723,7 @@ func SendWxCategoryMsgWithYxActivityCancelSignUpBySell(uid, activityId int) (err
 	defer func() {
 		if err != nil {
 			fmt.Println(err)
-			go alarm_msg.SendAlarmMsg("修改活动人数限制之后,对于因为人数已满而失败的用户,推送模板消息,发送类目模版消息失败,Err:"+err.Error()+";msg:"+msg, 3)
+			go alarm_msg.SendAlarmMsg("销售或后台管理员给用户取消报名之后,进行模版消息推送-研选类目模版,Err:"+err.Error()+";msg:"+msg, 3)
 			utils.FileLogCygx.Info(fmt.Sprintf("发送类目模版消息失败,Err:%s,%s", err.Error(), msg))
 		}
 	}()
@@ -757,6 +757,16 @@ func SendWxCategoryMsgWithYxActivityCancelSignUpBySell(uid, activityId int) (err
 		err = errors.New("GetSellerByCompanyIdCheckFicc, Err: " + e.Error())
 		return
 	}
+	configCode := utils.TPL_MSG_NEI_RONG_ZU
+	cnfNeiRong, err := cygx.GetConfigByCode(configCode)
+	if err != nil {
+		return
+	}
+	mobileArr = append(mobileArr, sellerItem.Mobile)
+	cnfNeiRongArr := strings.Split(cnfNeiRong.ConfigValue, ",")
+	for _, v := range cnfNeiRongArr {
+		mobileArr = append(mobileArr, v)
+	}
 	openIdList, e := cygx.GetUserRecordListByMobileArr(mobileArr)
 	if e != nil {
 		err = errors.New("GetWxOpenIdBList, Err: " + e.Error())