正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -121,7 +121,7 @@ class ImageController | @@ -121,7 +121,7 @@ class ImageController | ||
| 121 | return $this->response($files->getError(), Code::USER_ERROR); | 121 | return $this->response($files->getError(), Code::USER_ERROR); |
| 122 | } | 122 | } |
| 123 | $data = [ | 123 | $data = [ |
| 124 | - 'path' => $url.$filename, | 124 | + 'path' => $url.'/'.$filename, |
| 125 | 'created_at' => date('Y-m-d H:i:s',time()), | 125 | 'created_at' => date('Y-m-d H:i:s',time()), |
| 126 | 'size' => $res->getSize(), | 126 | 'size' => $res->getSize(), |
| 127 | 'hash' => $hash, | 127 | 'hash' => $hash, |
| @@ -173,7 +173,7 @@ class ImageController | @@ -173,7 +173,7 @@ class ImageController | ||
| 173 | return $this->response($file->getError(), Code::USER_ERROR); | 173 | return $this->response($file->getError(), Code::USER_ERROR); |
| 174 | } | 174 | } |
| 175 | $save_data[] = [ | 175 | $save_data[] = [ |
| 176 | - 'path' => $url.$filename, | 176 | + 'path' => $url.'/'.$filename, |
| 177 | 'created_at' => date('Y-m-d H:i:s',time()), | 177 | 'created_at' => date('Y-m-d H:i:s',time()), |
| 178 | 'size' => $res->getSize(), | 178 | 'size' => $res->getSize(), |
| 179 | 'hash' => $hash, | 179 | 'hash' => $hash, |
-
请 注册 或 登录 后发表评论