|
@@ -81,7 +81,7 @@ class Custom extends Model
|
|
|
public function getOne($uid)
|
|
|
{
|
|
|
// 返回结果
|
|
|
- $custom = $this->query()->where([['uid','=',$uid]])->first(['uid','external_userid','weiban_extid','phone','userpic','username','sex','city_id','status','insert_time']);
|
|
|
+ $custom = $this->query()->where([['uid','=',$uid]])->first(['uid','is_manager','external_userid','weiban_extid','phone','userpic','username','sex','city_id','status','insert_time']);
|
|
|
// 返回结果
|
|
|
if( !$custom ) return [];
|
|
|
// 数据结构
|
|
@@ -98,7 +98,7 @@ class Custom extends Model
|
|
|
public function getOneByPhone($phone)
|
|
|
{
|
|
|
// 返回结果
|
|
|
- $custom = $this->query()->where([['phone','=',$phone]])->first(['uid','external_userid','weiban_extid','phone','userpic','username','sex','city_id','status','insert_time']);
|
|
|
+ $custom = $this->query()->where([['phone','=',$phone]])->first(['uid','is_manager','external_userid','weiban_extid','phone','userpic','username','sex','city_id','status','insert_time']);
|
|
|
// 返回结果
|
|
|
if( !$custom ) return [];
|
|
|
// 数据结构
|