浏览代码

用户验证码登录时,只查询未被删除的账号

sunxiaobiao 1 年之前
父节点
当前提交
7acc71cdec
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/common/dao/user/UserDao.php

+ 1 - 1
app/common/dao/user/UserDao.php

@@ -264,7 +264,7 @@ class UserDao extends BaseDao
264
      */
264
      */
265
     public function accountByUser($account)
265
     public function accountByUser($account)
266
     {
266
     {
267
-        return User::getDB()->where('account', $account)->find();
267
+        return User::getDB()->where('account', $account)->where('is_del', 0)->find();
268
     }
268
     }
269
 
269
 
270
     /**
270
     /**