|
@@ -467,11 +467,22 @@ 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
|
|
|
}
|
|
|
+ if len(openIdList) == 0 {
|
|
|
+ err = nil
|
|
|
+ return
|
|
|
+ }
|
|
|
keyword1 := user.RealName + "--" + user.CompanyName + "(" + sellerItemQy.RealName + ")"
|
|
|
keyword2 := user.Mobile
|
|
|
keyword3 := time.Now().Format(utils.FormatDateTime)
|