Browse Source

同步优化

xingzai 3 years ago
parent
commit
bae0fed8ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/wx_user.go

+ 1 - 1
models/wx_user.go

@@ -223,7 +223,7 @@ func ModifyWxUserIsMsgOutboundMobile(userId int) (err error) {
 //列表
 func GetUserListAll() (items []*WxUserItem, err error) {
 	o := orm.NewOrm()
-	sql := `SELECT * FROM wx_user  WHERE mobile <>'' `
+	sql := `SELECT * FROM wx_user  WHERE mobile <>'' AND outbound_mobile = ''`
 	_, err = o.Raw(sql).QueryRows(&items)
 	return
 }