...
|
...
|
@@ -164,7 +164,7 @@ func DeleteUsers(id int64) (err error) { |
|
|
|
|
|
func GetUserKefu() (v []*User, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
sql := `select * from user where is_kefu = 1`
|
|
|
sql := `select * from user where is_kefu = 1 and enable_status=1`
|
|
|
if _, err = o.Raw(sql).QueryRows(&v); err == nil {
|
|
|
return v, nil
|
|
|
}
|
...
|
...
|
@@ -173,7 +173,7 @@ func GetUserKefu() (v []*User, err error) { |
|
|
|
|
|
func GetUserByMobile(mobile string) (v *User, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
sql := "select * from user where phone=?"
|
|
|
sql := "select * from user where phone=? and enable_status=1"
|
|
|
if err = o.Raw(sql, mobile).QueryRow(&v); err == nil {
|
|
|
return v, nil
|
|
|
}
|
...
|
...
|
|