其余文件
This commit is contained in:
18
app/common/model/user/UserLevel.php
Normal file
18
app/common/model/user/UserLevel.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace app\common\model\user;
|
||||
|
||||
use app\common\basics\Models;
|
||||
use app\common\server\UrlServer;
|
||||
|
||||
class UserLevel extends Models
|
||||
{
|
||||
public function getImageAttr($value,$data)
|
||||
{
|
||||
return empty($value) ? $value : UrlServer::getFileUrl($value);
|
||||
}
|
||||
|
||||
public function getBackgroundImageAttr($value)
|
||||
{
|
||||
return empty($value) ? $value : UrlServer::getFileUrl($value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user