Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -191,8 +191,8 @@ class UpFiles extends Common | @@ -191,8 +191,8 @@ class UpFiles extends Common | ||
| 191 | $uploadMgr = new UploadManager(); | 191 | $uploadMgr = new UploadManager(); |
| 192 | $backUrl = "http://nosqn.colorcun.com"; //返回图片在七牛的路径 | 192 | $backUrl = "http://nosqn.colorcun.com"; //返回图片在七牛的路径 |
| 193 | //压缩处理 | 193 | //压缩处理 |
| 194 | - //$image = new Compression($imgPath); | ||
| 195 | - //$imgPath = $image->getThumb(); | 194 | + $image = new Compression($imgPath); |
| 195 | + $imgPath = $image->getThumb(); | ||
| 196 | list($ret, $err) = $uploadMgr->putFile($token,$key,$imgPath); | 196 | list($ret, $err) = $uploadMgr->putFile($token,$key,$imgPath); |
| 197 | $rs['url'] = $backUrl."/".$key; | 197 | $rs['url'] = $backUrl."/".$key; |
| 198 | } | 198 | } |
-
Please register or login to post a comment