用户随手拍后台详情

This commit is contained in:
2024-11-29 15:25:13 +08:00
parent 0db1a67e68
commit 2cf50f16fb
2 changed files with 12 additions and 2 deletions

View File

@ -10,4 +10,14 @@ class TicketUserShare extends Model
{
return str2arr($data['imgs'] ?: '', '|');
}
public function getTypeNameAttr($value, $data)
{
$type = $this->type()->find();
if (!empty($type)) {
return $type['name'];
} else {
return '未知';
}
}
}