mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update UserService.php
This commit is contained in:
parent
77c754f6d2
commit
176e11872a
@ -57,7 +57,7 @@ class UserService extends Service
|
||||
$query = $this->app->db->name($this->table)->where($map);
|
||||
$user = $query->withoutField('deleted,password')->where(['deleted' => 0])->find() ?: [];
|
||||
unset($data['id'], $data['token'], $data['tokenv'], $data['status'], $data['deleted'], $data['create_at']);
|
||||
if (empty($data) || (empty($data['phone']) && empty($data['openid1']) && empty($data['openid2']) && empty($data['unionid']))) {
|
||||
if (empty($data['phone']) && empty($data['openid1']) && empty($data['openid2']) && empty($data['unionid'])) {
|
||||
return $user;
|
||||
}
|
||||
if ($force) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user