|
|
@@ -24,8 +24,8 @@ class LotteryImageService
|
|
|
$html = $this->buildHtml($records);
|
|
|
App::setLocale($lang);
|
|
|
// ========= 2. 保存HTML到临时文件 =========
|
|
|
- $htmlPath = storage_path("app/lottery_temp.html");
|
|
|
-// $group_language = Config::where('field', 'group_language')->first()->val;
|
|
|
+// $htmlPath = storage_path("app/lottery_temp.html");
|
|
|
+ $htmlPath = base_path() . "/public/static/html/lottery_temp.html";
|
|
|
// $htmlPath = base_path() . "/public/static/html/lottery_temp_{$group_language}.html";
|
|
|
file_put_contents($htmlPath, $html);
|
|
|
|
|
|
@@ -64,7 +64,7 @@ class LotteryImageService
|
|
|
$rows = '';
|
|
|
foreach ($records as $row) {
|
|
|
$rows .= '<tr>';
|
|
|
- $rows .= '<td>' . htmlspecialchars($row['issue_no']) ." ". lang("期").'</td>';
|
|
|
+ $rows .= '<td>' . htmlspecialchars($row['issue_no']) . " " . lang("期") . '</td>';
|
|
|
$rows .= '<td>';
|
|
|
foreach ($row['winning_numbers'] as $i => $num) {
|
|
|
$color = match ($i) {
|