作者 lyh

gx

@@ -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 }