34 lines
747 B
PHP
34 lines
747 B
PHP
<?php
|
|
|
|
namespace app\common\model\system_store;
|
|
|
|
use app\common\model\BaseModel;
|
|
use app\common\service\FileService;
|
|
use think\model\concern\SoftDelete;
|
|
|
|
|
|
/**
|
|
* Class DeliveryService
|
|
* @package app\common\model\system_store
|
|
*/
|
|
class DeliveryService extends BaseModel
|
|
{
|
|
use SoftDelete;
|
|
|
|
protected $name = 'delivery_service';
|
|
protected $deleteTime = 'delete_time';
|
|
|
|
/**
|
|
* @notes 头像获取器 - 头像路径添加域名
|
|
* @param $value
|
|
* @return string
|
|
* @author Tab
|
|
* @date 2021/7/13 11:35
|
|
*/
|
|
public function getAvatarAttr($value)
|
|
{
|
|
return empty($value) ? FileService::getFileUrl(config('project.default_image.admin_avatar')) : FileService::getFileUrl(trim($value, '/'));
|
|
}
|
|
|
|
}
|