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