From c90f22da36aed29ab110c0a61720f2eeb6a35e63 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 9 Dec 2022 17:49:04 +0800 Subject: [PATCH] test --- db/db_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_user.go b/db/db_user.go index 8d445a6..4b3df89 100644 --- a/db/db_user.go +++ b/db/db_user.go @@ -8,7 +8,7 @@ import ( // UserFindByMobile search user by mobile func UserFindByMobile(Db *xorm.Engine, mobile string) (*model.User, error) { var m model.User - if has, err := Db.Where("phone = ? AND delete_at = 0", mobile, mobile). + if has, err := Db.Where("phone = ? AND delete_at = 0", mobile). Get(&m); err != nil || has == false { return nil, err }