作者 lyh

hx

@@ -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