Ken 6 dienas atpakaļ
vecāks
revīzija
4e644998ca
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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);