Commit df27f326 authored by wangzhengwen's avatar wangzhengwen

6.5

parent dbcbf45e
......@@ -6,7 +6,7 @@ DEFAULT_TIMEZONE = Asia/Shanghai
[DATABASE]
TYPE = mysql
HOSTNAME = 192.168.4.28
HOSTNAME = 192.168.4.222
DATABASE = veitooldata
USERNAME = root
PASSWORD = root
......
......@@ -20,7 +20,7 @@ class UserService
}
$user = userModel::where(['token'=>$token,'is_del'=>0])
// ->field('id,username,mobile,realname,token,role')
->with(['headico','zfb'])
->with(['headico','zfb','userReal'])
->find();
if (!$user)
{
......
......@@ -99,5 +99,11 @@ class User extends Model
return $this->hasMany(Payment::class);
}
//实名信息
public function userReal()
{
return $this->hasOne(UserSmrz::class, 'user_id', 'id')->where('is_del',0);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment