first commit
This commit is contained in:
32
app/common/model/lh/LhCoin.php
Normal file
32
app/common/model/lh/LhCoin.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
namespace app\common\model\lh;
|
||||
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
use think\model\concern\SoftDelete;
|
||||
use app\common\service\FileService;
|
||||
|
||||
|
||||
/**
|
||||
* 量化货币模型
|
||||
* Class LhCoin
|
||||
* @package app\common\model\lh
|
||||
*/
|
||||
class LhCoin extends BaseModel
|
||||
{
|
||||
use SoftDelete;
|
||||
protected $name = 'lh_coin';
|
||||
protected $deleteTime = 'delete_time';
|
||||
|
||||
/**
|
||||
* @notes 图片域名替换
|
||||
* @param $value
|
||||
* @return string
|
||||
* @author Tab
|
||||
* @date 2021/7/17 14:28
|
||||
*/
|
||||
public function getLogoAttr($value)
|
||||
{
|
||||
return trim($value) ? FileService::getFileUrl($value) : '';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user