Ken 6 дней назад
Родитель
Сommit
4e644998ca
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/LotteryImageService.php

+ 1 - 1
app/Services/LotteryImageService.php

@@ -26,7 +26,7 @@ class LotteryImageService
         file_put_contents($htmlPath, $html);
 
         // ========= 3. 输出图片路径 =========
-        $fileName = 'lottery_' . time() . '.png';
+        $fileName = 'lottery_' . $records[0]['issue_no'] . '.png';
         $outputPath = storage_path('app/public/lottery/' . $fileName);
         if (!is_dir(dirname($outputPath))) {
             mkdir(dirname($outputPath), 0755, true);