正在显示
1 个修改的文件
包含
6 行增加
和
8 行删除
| @@ -63,19 +63,17 @@ class AyrReleaseLogic extends BaseLogic | @@ -63,19 +63,17 @@ class AyrReleaseLogic extends BaseLogic | ||
| 63 | $imageModel = new Image(); | 63 | $imageModel = new Image(); |
| 64 | $list = $imageModel->list(['hash'=>['in',$images]],'id'); | 64 | $list = $imageModel->list(['hash'=>['in',$images]],'id'); |
| 65 | foreach ($list as $v1){ | 65 | foreach ($list as $v1){ |
| 66 | - var_dump($v1); | ||
| 67 | - die(); | ||
| 68 | - $arr[] = url('/b/images/' . $v1['hash']); | 66 | + $filename = basename($v1['path']); |
| 67 | + $arr[] = url('/upload/images/'.$filename); | ||
| 69 | } | 68 | } |
| 70 | }else{ | 69 | }else{ |
| 71 | - $arr[] = url('/b/file_hash/' . $v); | 70 | + $fileModel = new File(); |
| 71 | + $info = $fileModel->read(['hash'=>$v]); | ||
| 72 | + $filename = basename($info['path']); | ||
| 73 | + $arr[] = url('/upload/images/'.$filename); | ||
| 72 | } | 74 | } |
| 73 | } | 75 | } |
| 74 | return $this->success($arr); | 76 | return $this->success($arr); |
| 75 | } | 77 | } |
| 76 | 78 | ||
| 77 | - | ||
| 78 | - public function platforms_request(){ | ||
| 79 | - | ||
| 80 | - } | ||
| 81 | } | 79 | } |
-
请 注册 或 登录 后发表评论