Przeglądaj źródła

Merge branch 'mfyx_wx_tmp_1.1' of http://8.136.199.33:3000/cxzhang/hongze_mfyx

xingzai 8 miesięcy temu
rodzic
commit
34379a4d3c

+ 0 - 1
controllers/activity.go

@@ -964,7 +964,6 @@ func (this *ActivityCoAntroller) SignupAdd() {
 	//公司线下调研活动客户报名后给建会人,所属销售推送模板信息
 	if signupStatus == "Success" {
 		go services.SendResearchActivitiesTemplateMsg(user, activityInfo, "报名")
-		go services.SendResearchActivitiesTemplateMsg(user, activityInfo, "报名")
 	}
 	if signupType == 1 && user.IsMsgOutboundMobile == 0 {
 		resp.GoOutboundMobile = true

+ 1 - 1
models/user_record.go

@@ -140,7 +140,7 @@ func GetOpenIdByUserIds(ids string) (item []*OpenIdList, err error) {
 }
 
 // 根据手机号获取用户的openid
-func GetUserRecordListByMobileArr(mobiles []string) (items []*OpenIdList, err error) {
+func GetMfyxUserRecordListByMobileArr(mobiles []string) (items []*OpenIdList, err error) {
 	o := orm.NewOrm()
 	lenarr := len(mobiles)
 	if lenarr == 0 {

+ 1 - 1
models/wx_template_msg.go

@@ -109,7 +109,7 @@ func GetWxOpenIdByMobileSliceList(mobiles []string) (items []*OpenIdList, err er
 			u.open_id,
 			u.cygx_user_id AS user_id 
 		FROM
-			cygx_mfyx_gzh_user_record AS u 
+			cygx_user_record AS u 
 		WHERE
 			1 = 1  ` + condition
 	_, err = o.Raw(sql, pars).QueryRows(&items)

+ 1 - 1
services/wx_category_template_msg.go

@@ -426,7 +426,7 @@ func SendActivitieSignCategoryTemplateMsg(user *models.WxUserItem, activityDetai
 	keyword4 = activityDetail.ActivityName
 	keyword5 = time.Now().Format(utils.FormatDateTimeMinute2)
 
-	openIdList, e := models.GetWxOpenIdByMobileSliceList(mobiles)
+	openIdList, e := models.GetMfyxUserRecordListByMobileArr(mobiles)
 	if e != nil {
 		err = errors.New("GetWxOpenIdByMobileList, Err: " + e.Error())
 		return