Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
2 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -34,7 +34,7 @@ class TestController extends BaseController | @@ -34,7 +34,7 @@ class TestController extends BaseController | ||
| 34 | <p><a href="mailto:edinguas@gmail.com">Email:edinguas@gmail.com</a></p>'; | 34 | <p><a href="mailto:edinguas@gmail.com">Email:edinguas@gmail.com</a></p>'; |
| 35 | $newsLogic = new NewsLogic(); | 35 | $newsLogic = new NewsLogic(); |
| 36 | $key = $newsLogic->processImage($test); | 36 | $key = $newsLogic->processImage($test); |
| 37 | - $this->response('success',Code::SUCCESS,$key); | 37 | + $this->response('success',Code::SUCCESS,['key'=>$key]); |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | } | 40 | } |
| @@ -234,10 +234,9 @@ class NewsLogic extends BaseLogic | @@ -234,10 +234,9 @@ class NewsLogic extends BaseLogic | ||
| 234 | if ($decodedData === false) { | 234 | if ($decodedData === false) { |
| 235 | continue; // 如果解码失败,则跳过 | 235 | continue; // 如果解码失败,则跳过 |
| 236 | } | 236 | } |
| 237 | - return $decodedData; | ||
| 238 | // 设置文件名 | 237 | // 设置文件名 |
| 239 | - $outputFile = 'images/' . uniqid() . '.' . $imageType; | ||
| 240 | - $filePath = __DIR__ . '/' . $outputFile; | 238 | +// $outputFile = 'images/' . uniqid() . '.' . $imageType; |
| 239 | +// $filePath = __DIR__ . '/' . $outputFile; | ||
| 241 | // 保存图片到服务器 | 240 | // 保存图片到服务器 |
| 242 | // if (file_put_contents($filePath, $decodedData)) { | 241 | // if (file_put_contents($filePath, $decodedData)) { |
| 243 | // // 生成图片URL | 242 | // // 生成图片URL |
-
请 注册 或 登录 后发表评论