Browse Source

test

tags/v1.1.2
huangjiajun 1 year ago
parent
commit
c90f22da36
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      db/db_user.go

+ 1
- 1
db/db_user.go View File

@@ -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
}


Loading…
Cancel
Save