正在显示
1 个修改的文件
包含
3 行增加
和
9 行删除
| @@ -61,17 +61,11 @@ class AyrReleaseLogic extends BaseLogic | @@ -61,17 +61,11 @@ class AyrReleaseLogic extends BaseLogic | ||
| 61 | $arr = []; | 61 | $arr = []; |
| 62 | foreach ($data as $k => $v){ | 62 | foreach ($data as $k => $v){ |
| 63 | if($k == 'images'){ | 63 | if($k == 'images'){ |
| 64 | - $images = $v; | ||
| 65 | - $imageModel = new Image(); | ||
| 66 | - $list = $imageModel->list(['path'=>['in',$images]],'id'); | ||
| 67 | - foreach ($list as $v1){ | ||
| 68 | - $arr[] = getImageUrl($v1['path'],$this->user['storage_type'],$this->user['project_location']); | 64 | + foreach ($v as $v1){ |
| 65 | + $arr[] = $v1; | ||
| 69 | } | 66 | } |
| 70 | }else{ | 67 | }else{ |
| 71 | - $fileModel = new File(); | ||
| 72 | - $info = $fileModel->read(['path'=>$v]); | ||
| 73 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($info, true) . PHP_EOL, FILE_APPEND); | ||
| 74 | - $arr[] = getFileUrl($info['path'],$this->user['storage_type'],$this->user['project_location']); | 68 | + $arr[] = $v; |
| 75 | } | 69 | } |
| 76 | } | 70 | } |
| 77 | return $this->success($arr); | 71 | return $this->success($arr); |
-
请 注册 或 登录 后发表评论