正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -62,14 +62,14 @@ class AyrReleaseLogic extends BaseLogic | @@ -62,14 +62,14 @@ class AyrReleaseLogic extends BaseLogic | ||
| 62 | if($k == 'images'){ | 62 | if($k == 'images'){ |
| 63 | $images = $v; | 63 | $images = $v; |
| 64 | $imageModel = new Image(); | 64 | $imageModel = new Image(); |
| 65 | - $list = $imageModel->list(['hash'=>['in',$images]],'id'); | 65 | + $list = $imageModel->list(['path'=>['in',$images]],'id'); |
| 66 | foreach ($list as $v1){ | 66 | foreach ($list as $v1){ |
| 67 | - $arr[] = url('/upload'.$v1['path']); | 67 | + $arr[] = getImageUrl($v1['path']); |
| 68 | } | 68 | } |
| 69 | }else{ | 69 | }else{ |
| 70 | $fileModel = new File(); | 70 | $fileModel = new File(); |
| 71 | - $info = $fileModel->read(['hash'=>$v]); | ||
| 72 | - $arr[] = url('/upload'.$info['path']); | 71 | + $info = $fileModel->read(['path'=>$v]); |
| 72 | + $arr[] = getFileUrl($info['path']); | ||
| 73 | } | 73 | } |
| 74 | } | 74 | } |
| 75 | return $this->success($arr); | 75 | return $this->success($arr); |
-
请 注册 或 登录 后发表评论