|
@@ -54,6 +54,20 @@ class Product extends Base |
|
@@ -54,6 +54,20 @@ class Product extends Base |
|
54
|
$this->attributes['icon'] = Arr::a2s($value);
|
54
|
$this->attributes['icon'] = Arr::a2s($value);
|
|
55
|
}
|
55
|
}
|
|
56
|
|
56
|
|
|
|
|
57
|
+ /**
|
|
|
|
58
|
+ * @remark :图标获取器
|
|
|
|
59
|
+ * @name :getGalleryAttribute
|
|
|
|
60
|
+ * @author :lyh
|
|
|
|
61
|
+ * @method :post
|
|
|
|
62
|
+ * @time :2023/7/21 11:11
|
|
|
|
63
|
+ */
|
|
|
|
64
|
+ public function getIconAttribute($value){
|
|
|
|
65
|
+ $value = Arr::s2a($value);
|
|
|
|
66
|
+ foreach ($value as &$v){
|
|
|
|
67
|
+ $v = $this->getImageUrl($v);
|
|
|
|
68
|
+ }
|
|
|
|
69
|
+ return $value;
|
|
|
|
70
|
+ }
|
|
57
|
|
71
|
|
|
58
|
public function setAttrsAttribute($value){
|
72
|
public function setAttrsAttribute($value){
|
|
59
|
$this->attributes['attrs'] = Arr::a2s($value);
|
73
|
$this->attributes['attrs'] = Arr::a2s($value);
|