正在显示
1 个修改的文件
包含
0 行增加
和
8 行删除
| @@ -195,20 +195,12 @@ class Project extends Base | @@ -195,20 +195,12 @@ class Project extends Base | ||
| 195 | 195 | ||
| 196 | public function setConfirmFileAttribute($value) | 196 | public function setConfirmFileAttribute($value) |
| 197 | { | 197 | { |
| 198 | - foreach ($value as &$v) { | ||
| 199 | - $v = Upload::url2path($v); | ||
| 200 | - } | ||
| 201 | $this->attributes['confirm_file'] = Arr::a2s($value); | 198 | $this->attributes['confirm_file'] = Arr::a2s($value); |
| 202 | } | 199 | } |
| 203 | 200 | ||
| 204 | public function getConfirmFileAttribute($value) | 201 | public function getConfirmFileAttribute($value) |
| 205 | { | 202 | { |
| 206 | $value = Arr::s2a($value); | 203 | $value = Arr::s2a($value); |
| 207 | - if(!empty($value)) { | ||
| 208 | - foreach ($value as &$v) { | ||
| 209 | - $v = Upload::path2url($v); | ||
| 210 | - } | ||
| 211 | - } | ||
| 212 | return $value; | 204 | return $value; |
| 213 | } | 205 | } |
| 214 | 206 |
-
请 注册 或 登录 后发表评论