Browse Source

Merge branch 'master' of http://8.136.199.33:3000/cxzhang/hongze_web_mfyx into mfyx_3.0

xingzai 9 months ago
parent
commit
a011cc4c15
1 changed files with 8 additions and 1 deletions
  1. 8 1
      services/wx_template_msg.go

+ 8 - 1
services/wx_template_msg.go

@@ -471,7 +471,14 @@ func SendNeiRongZuActivitieSignTemplateMsg(user *models.WxUserItem, activityDeta
 		err = errors.New("GetConfigByCode, Err: " + e.Error() + configCode)
 		return
 	}
-	openIdList, e := models.GetWxOpenIdByMobileList(cnf.ConfigValue + "," + sellerItemQy.Mobile)
+
+	var mobile string
+	mobile = cnf.ConfigValue
+	if sellerItemQy != nil {
+		mobile += "," + sellerItemQy.Mobile // 如果有销售,拼接上销售的手机号
+	}
+
+	openIdList, e := models.GetWxOpenIdByMobileList(mobile)
 	if e != nil && e.Error() != utils.ErrNoRow() {
 		err = errors.New("GetUserRecordListByMobile, Err: " + e.Error() + cnf.ConfigValue)
 		return err