multi-store/app/common/model/system_store/SystemStoreStaff.php

36 lines
834 B
PHP
Raw Normal View History

2024-06-01 15:44:56 +08:00
<?php
namespace app\common\model\system_store;
use app\common\model\BaseModel;
2024-06-06 15:00:33 +08:00
use app\common\service\FileService;
2024-06-01 15:44:56 +08:00
use think\model\concern\SoftDelete;
/**
* 门店列表模型
* Class SystemStore
* @package app\common\model\system_store
*/
class SystemStoreStaff extends BaseModel
{
use SoftDelete;
protected $name = 'system_store_staff';
protected $deleteTime = 'delete_time';
// 不生成该表的日志
public $doNotRecordLog = true;
2024-06-06 15:00:33 +08:00
/**
* @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, '/'));
}
}