正在显示
1 个修改的文件
包含
14 行增加
和
0 行删除
| @@ -21,4 +21,18 @@ class CustomModuleContent extends Base | @@ -21,4 +21,18 @@ class CustomModuleContent extends Base | ||
| 21 | public function getCategoryIdAttribute($value){ | 21 | public function getCategoryIdAttribute($value){ |
| 22 | return explode(',',trim($value,',')); | 22 | return explode(',',trim($value,',')); |
| 23 | } | 23 | } |
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * @remark :视频 | ||
| 27 | + * @name :getVideoAttribute | ||
| 28 | + * @author :lyh | ||
| 29 | + * @method :post | ||
| 30 | + * @time :2024/1/23 14:31 | ||
| 31 | + */ | ||
| 32 | + public function getVideoAttribute($value){ | ||
| 33 | + if(!empty($value)){ | ||
| 34 | + $value = Arr::s2a($value); | ||
| 35 | + } | ||
| 36 | + return $value; | ||
| 37 | + } | ||
| 24 | } | 38 | } |
-
请 注册 或 登录 后发表评论