mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 01:52:48 +08:00
完成用户管理;基本功能完成;
This commit is contained in:
@@ -10,4 +10,13 @@ use think\Model;
|
||||
class User extends Model
|
||||
{
|
||||
//
|
||||
|
||||
public function getAvatarAttr($value)
|
||||
{
|
||||
if(empty($value)){
|
||||
return '/static/images/avatar.jpeg';
|
||||
}
|
||||
|
||||
return \get_source_link($value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user