فهرست منبع

Merge branch 'wx_msg_send' into yb/5.2

# Conflicts:
#	utils/constants.go
Roc 2 سال پیش
والد
کامیت
28a6e0a75c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      models/tables/wx_user/wx_user.go

+ 1 - 1
models/tables/wx_user/wx_user.go

@@ -43,7 +43,7 @@ func GetOpenIdList(openIdStr string) (items []*OpenIdList, err error) {
 
 //根据手机号获取用户的openid列表
 func GetOpenIdListByMobile(mobile, openIdStr string) (items []*OpenIdList, err error) {
-	sql := `SELECT DISTINCT ur.open_id FROM wx_user AS wu 
+	sql := `SELECT DISTINCT ur.open_id,wu.user_id FROM wx_user AS wu 
           INNER JOIN company AS c ON c.company_id = wu.company_id 
           INNER join user_record  as ur on wu.user_id=ur.user_id
           WHERE ur.open_id != "" and ur.create_platform=1 AND wu.mobile=? `