Explorar el Código

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

sunxiaobiao hace 1 año
padre
commit
7acc71cdec
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 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
     /**