作者 lyh

gx

@@ -16,63 +16,63 @@ class TemplateModule extends Base @@ -16,63 +16,63 @@ class TemplateModule extends Base
16 protected $table = 'gl_public_template_module'; 16 protected $table = 'gl_public_template_module';
17 17
18 18
19 - /**  
20 - * @remark :获取器image  
21 - * @name :getImageAttribute  
22 - * @author :lyh  
23 - * @method :post  
24 - * @time :2023/8/3 16:17  
25 - */  
26 - public function getImageAttribute($value){  
27 - $value = getImageUrl($value);  
28 - return $value;  
29 - }  
30 -  
31 - /**  
32 - * @remark :获取器images  
33 - * @name :getImageAttribute  
34 - * @author :lyh  
35 - * @method :post  
36 - * @time :2023/8/3 16:17  
37 - */  
38 - public function getImagesAttribute($value){  
39 - $arr = explode(',',$value);  
40 - $value = [];  
41 - foreach ($arr as $v){  
42 - $value[] = getImageUrl($v);  
43 - }  
44 - return $value;  
45 - }  
46 -  
47 - /**  
48 - * @remark :写入器images  
49 - * @name :setImageAttribute  
50 - * @author :lyh  
51 - * @method :post  
52 - * @time :2023/8/3 16:17  
53 - */  
54 - public function setVideoAttribute($value){  
55 - $arr = explode(',',trim($value,','));  
56 - $arr_images = [];  
57 - foreach ($arr as $v){  
58 - $arr_images[] = basename($v);  
59 - }  
60 - $this->attributes['video'] = implode(',',$arr_images);  
61 - }  
62 -  
63 - /**  
64 - * @remark :获取器images  
65 - * @name :getImageAttribute  
66 - * @author :lyh  
67 - * @method :post  
68 - * @time :2023/8/3 16:17  
69 - */  
70 - public function getVideoAttribute($value){  
71 - $arr = explode(',',$value);  
72 - $value = [];  
73 - foreach ($arr as $v){  
74 - $value[] = getFileUrl($v);  
75 - }  
76 - return $value;  
77 - } 19 +// /**
  20 +// * @remark :获取器image
  21 +// * @name :getImageAttribute
  22 +// * @author :lyh
  23 +// * @method :post
  24 +// * @time :2023/8/3 16:17
  25 +// */
  26 +// public function getImageAttribute($value){
  27 +// $value = getImageUrl($value);
  28 +// return $value;
  29 +// }
  30 +//
  31 +// /**
  32 +// * @remark :获取器images
  33 +// * @name :getImageAttribute
  34 +// * @author :lyh
  35 +// * @method :post
  36 +// * @time :2023/8/3 16:17
  37 +// */
  38 +// public function getImagesAttribute($value){
  39 +// $arr = explode(',',$value);
  40 +// $value = [];
  41 +// foreach ($arr as $v){
  42 +// $value[] = getImageUrl($v);
  43 +// }
  44 +// return $value;
  45 +// }
  46 +//
  47 +// /**
  48 +// * @remark :写入器images
  49 +// * @name :setImageAttribute
  50 +// * @author :lyh
  51 +// * @method :post
  52 +// * @time :2023/8/3 16:17
  53 +// */
  54 +// public function setVideoAttribute($value){
  55 +// $arr = explode(',',trim($value,','));
  56 +// $arr_images = [];
  57 +// foreach ($arr as $v){
  58 +// $arr_images[] = basename($v);
  59 +// }
  60 +// $this->attributes['video'] = implode(',',$arr_images);
  61 +// }
  62 +//
  63 +// /**
  64 +// * @remark :获取器images
  65 +// * @name :getImageAttribute
  66 +// * @author :lyh
  67 +// * @method :post
  68 +// * @time :2023/8/3 16:17
  69 +// */
  70 +// public function getVideoAttribute($value){
  71 +// $arr = explode(',',$value);
  72 +// $value = [];
  73 +// foreach ($arr as $v){
  74 +// $value[] = getFileUrl($v);
  75 +// }
  76 +// return $value;
  77 +// }
78 } 78 }