|
|
@@ -132,7 +132,7 @@ func (u UserDb) UserFindAndCount(uid int64, phone string, nickname string, level |
|
|
|
var m []model.User |
|
|
|
session := u.Db.Where("") |
|
|
|
if uid != 0 { |
|
|
|
session = session.Where("uid=?", uid) |
|
|
|
session = session.Where("id=?", uid) |
|
|
|
} |
|
|
|
if phone != "" { |
|
|
|
session = session.Where("phone = ?", phone) |
|
|
|