...
|
...
|
@@ -35,6 +35,21 @@ class Banner extends Model |
|
|
return isset($list[$value]) ? $list[$value] : '';
|
|
|
}
|
|
|
|
|
|
public function getImagesAttr($value, $data)
|
|
|
{
|
|
|
$list = explode(',', $data['images']);
|
|
|
foreach ($list as $k => $v) {
|
|
|
$value = cdnurl($v['images'], true);
|
|
|
}
|
|
|
return $value;
|
|
|
}
|
|
|
|
|
|
public function getDetailsAttr($value, $data)
|
|
|
{
|
|
|
$value = strip_tags($data['details']);
|
|
|
return $value;
|
|
|
}
|
|
|
|
|
|
public function getCreatetimeTextAttr($value, $data)
|
|
|
{
|
|
|
$value = $value ? $value : ($data['createtime'] ?? "");
|
...
|
...
|
|