Category.php
341 字节
<?php
namespace app\api\model;
use think\Model;
class Category extends Model
{
protected $name = 'litestore_category';
protected $append = [
'image_text'
];
public function getImageTextAttr($value,$data)
{
$value = empty($data['image'])?'':cdnurl($data['image'],true);
return $value;
}
}