正在显示
1 个修改的文件
包含
64 行增加
和
64 行删除
| @@ -97,70 +97,70 @@ class Product extends Base | @@ -97,70 +97,70 @@ class Product extends Base | ||
| 97 | } | 97 | } |
| 98 | return $value; | 98 | return $value; |
| 99 | } | 99 | } |
| 100 | - | ||
| 101 | - public function setAttrsAttribute($value){ | ||
| 102 | - $this->attributes['attrs'] = Arr::a2s($value); | ||
| 103 | - } | ||
| 104 | - | ||
| 105 | - public function getAttrsAttribute($value){ | ||
| 106 | - return Arr::s2a($value); | ||
| 107 | - } | ||
| 108 | - | ||
| 109 | - public function setDescribeAttribute($value){ | ||
| 110 | - $this->attributes['describe'] = Arr::a2s($value); | ||
| 111 | - } | ||
| 112 | - | ||
| 113 | - public function getDescribeAttribute($value){ | ||
| 114 | - return Arr::s2a($value); | ||
| 115 | - } | ||
| 116 | - | ||
| 117 | - public function setSeoMateAttribute($value){ | ||
| 118 | - $this->attributes['seo_mate'] = Arr::a2s($value); | ||
| 119 | - } | ||
| 120 | - | ||
| 121 | - public function getSeoMateAttribute($value){ | ||
| 122 | - return Arr::s2a($value); | ||
| 123 | - } | ||
| 124 | - | ||
| 125 | - public function setCategoryIdAttribute($value){ | ||
| 126 | - $this->attributes['category_id'] = ','.Arr::arrToSet($value).','; | ||
| 127 | - } | ||
| 128 | - | ||
| 129 | - public function getCategoryIdAttribute($value){ | ||
| 130 | - return Arr::setToArr(trim($value,',')); | ||
| 131 | - } | ||
| 132 | - | ||
| 133 | - public function setAttrIdAttribute($value){ | ||
| 134 | - $this->attributes['attr_id'] = Arr::arrToSet($value); | ||
| 135 | - } | ||
| 136 | - | ||
| 137 | - public function getAttrIdAttribute($value){ | ||
| 138 | - return Arr::setToArr($value); | ||
| 139 | - } | ||
| 140 | - | ||
| 141 | - public function setDescribeIdAttribute($value){ | ||
| 142 | - $this->attributes['describe_id'] = Arr::arrToSet($value); | ||
| 143 | - } | ||
| 144 | - | ||
| 145 | - public function getDescribeIdAttribute($value){ | ||
| 146 | - return Arr::setToArr($value); | ||
| 147 | - } | ||
| 148 | - | ||
| 149 | - public function setKeywordIdAttribute($value){ | ||
| 150 | - $this->attributes['keyword_id'] = ','.Arr::arrToSet($value).','; | ||
| 151 | - } | ||
| 152 | - | ||
| 153 | - public function getKeywordIdAttribute($value){ | ||
| 154 | - return Arr::setToArr(trim($value,',')); | ||
| 155 | - } | ||
| 156 | - | ||
| 157 | - public function setRelatedProductIdAttribute($value){ | ||
| 158 | - $this->attributes['related_product_id'] = Arr::arrToSet($value); | ||
| 159 | - } | ||
| 160 | - | ||
| 161 | - public function getRelatedProductIdAttribute($value){ | ||
| 162 | - return Arr::setToArr($value); | ||
| 163 | - } | 100 | +// |
| 101 | +// public function setAttrsAttribute($value){ | ||
| 102 | +// $this->attributes['attrs'] = Arr::a2s($value); | ||
| 103 | +// } | ||
| 104 | +// | ||
| 105 | +// public function getAttrsAttribute($value){ | ||
| 106 | +// return Arr::s2a($value); | ||
| 107 | +// } | ||
| 108 | +// | ||
| 109 | +// public function setDescribeAttribute($value){ | ||
| 110 | +// $this->attributes['describe'] = Arr::a2s($value); | ||
| 111 | +// } | ||
| 112 | +// | ||
| 113 | +// public function getDescribeAttribute($value){ | ||
| 114 | +// return Arr::s2a($value); | ||
| 115 | +// } | ||
| 116 | +// | ||
| 117 | +// public function setSeoMateAttribute($value){ | ||
| 118 | +// $this->attributes['seo_mate'] = Arr::a2s($value); | ||
| 119 | +// } | ||
| 120 | +// | ||
| 121 | +// public function getSeoMateAttribute($value){ | ||
| 122 | +// return Arr::s2a($value); | ||
| 123 | +// } | ||
| 124 | +// | ||
| 125 | +// public function setCategoryIdAttribute($value){ | ||
| 126 | +// $this->attributes['category_id'] = ','.Arr::arrToSet($value).','; | ||
| 127 | +// } | ||
| 128 | +// | ||
| 129 | +// public function getCategoryIdAttribute($value){ | ||
| 130 | +// return Arr::setToArr(trim($value,',')); | ||
| 131 | +// } | ||
| 132 | +// | ||
| 133 | +// public function setAttrIdAttribute($value){ | ||
| 134 | +// $this->attributes['attr_id'] = Arr::arrToSet($value); | ||
| 135 | +// } | ||
| 136 | +// | ||
| 137 | +// public function getAttrIdAttribute($value){ | ||
| 138 | +// return Arr::setToArr($value); | ||
| 139 | +// } | ||
| 140 | +// | ||
| 141 | +// public function setDescribeIdAttribute($value){ | ||
| 142 | +// $this->attributes['describe_id'] = Arr::arrToSet($value); | ||
| 143 | +// } | ||
| 144 | +// | ||
| 145 | +// public function getDescribeIdAttribute($value){ | ||
| 146 | +// return Arr::setToArr($value); | ||
| 147 | +// } | ||
| 148 | +// | ||
| 149 | +// public function setKeywordIdAttribute($value){ | ||
| 150 | +// $this->attributes['keyword_id'] = ','.Arr::arrToSet($value).','; | ||
| 151 | +// } | ||
| 152 | +// | ||
| 153 | +// public function getKeywordIdAttribute($value){ | ||
| 154 | +// return Arr::setToArr(trim($value,',')); | ||
| 155 | +// } | ||
| 156 | +// | ||
| 157 | +// public function setRelatedProductIdAttribute($value){ | ||
| 158 | +// $this->attributes['related_product_id'] = Arr::arrToSet($value); | ||
| 159 | +// } | ||
| 160 | +// | ||
| 161 | +// public function getRelatedProductIdAttribute($value){ | ||
| 162 | +// return Arr::setToArr($value); | ||
| 163 | +// } | ||
| 164 | 164 | ||
| 165 | // public static function getNumByProjectId($project_id){ | 165 | // public static function getNumByProjectId($project_id){ |
| 166 | // return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count(); | 166 | // return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count(); |
-
请 注册 或 登录 后发表评论