mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-26 19:36:36 +08:00
修改测试接口,同步数据库文件
This commit is contained in:
parent
78d226ad93
commit
2015660e81
@ -56,7 +56,7 @@ class UserService extends Service
|
||||
{
|
||||
$user = $this->app->db->name($this->table)->where($map)->where(['deleted' => 0])->find() ?: [];
|
||||
unset($data['id'], $data['token'], $data['tokenv'], $data['status'], $data['deleted'], $data['create_at']);
|
||||
if (empty($data) || (empty($data['phone'] . $data['openid1'] . $data['openid2'] . $data['unionid']))) {
|
||||
if (empty($data) || (empty($data['phone']) && empty($data['openid1']) && empty($data['openid2']) && empty($data['unionid']))) {
|
||||
unset($user['deleted'], $user['password']);
|
||||
return $user;
|
||||
} elseif (empty($user['id'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user