55 lines
1.1 KiB
PHP
55 lines
1.1 KiB
PHP
<?php
|
|
namespace app\common\model\user;
|
|
|
|
|
|
use app\common\model\BaseModel;
|
|
use app\common\service\FileService;
|
|
|
|
|
|
/**
|
|
* 用户信息模型
|
|
* Class UserInfo
|
|
* @package app\common\model\user
|
|
*/
|
|
class UserInfo extends BaseModel
|
|
{
|
|
|
|
protected $name = 'user_info';
|
|
|
|
/**
|
|
* @notes 图片域名替换
|
|
* @param $value
|
|
* @return string
|
|
* @author Tab
|
|
* @date 2021/7/17 14:28
|
|
*/
|
|
public function getCardImg1Attr($value)
|
|
{
|
|
return trim($value) ? FileService::getFileUrl($value) : '';
|
|
}
|
|
|
|
/**
|
|
* @notes 图片域名替换
|
|
* @param $value
|
|
* @return string
|
|
* @author Tab
|
|
* @date 2021/7/17 14:28
|
|
*/
|
|
public function getCardImg2Attr($value)
|
|
{
|
|
return trim($value) ? FileService::getFileUrl($value) : '';
|
|
}
|
|
|
|
/**
|
|
* @notes 图片域名替换
|
|
* @param $value
|
|
* @return string
|
|
* @author Tab
|
|
* @date 2021/7/17 14:28
|
|
*/
|
|
public function getCardImg3Attr($value)
|
|
{
|
|
return trim($value) ? FileService::getFileUrl($value) : '';
|
|
}
|
|
|
|
} |