mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
26 lines
347 B
PHP
26 lines
347 B
PHP
<?php
|
|
|
|
namespace app\model;
|
|
|
|
use think\Model;
|
|
|
|
/**
|
|
* @mixin think\Model
|
|
*/
|
|
class Admin extends Model
|
|
{
|
|
//
|
|
|
|
public function getAvatarAttr($value)
|
|
{
|
|
return \get_source_link($value);
|
|
}
|
|
|
|
public function getGroupAttr()
|
|
{
|
|
if(empty($this->getData('group_id'))){
|
|
return '未分组';
|
|
}
|
|
}
|
|
}
|