|
|
@@ -55,11 +55,14 @@ class LotteryImageService
|
|
|
*/
|
|
|
protected function buildHtml($records): string
|
|
|
{
|
|
|
-
|
|
|
+ $time = now()->format('Y-m-d H:i:s');
|
|
|
+ $lang = App::getLocale();
|
|
|
+ $group_language = Config::where('field', 'group_language')->first()->val;
|
|
|
+ App::setLocale($group_language);
|
|
|
$rows = '';
|
|
|
foreach ($records as $row) {
|
|
|
$rows .= '<tr>';
|
|
|
- $rows .= '<td>' . htmlspecialchars($row['issue_no']) . '期</td>';
|
|
|
+ $rows .= '<td>' . htmlspecialchars($row['issue_no']) ." ". lang("期").'</td>';
|
|
|
$rows .= '<td>';
|
|
|
foreach ($row['winning_numbers'] as $i => $num) {
|
|
|
$color = match ($i) {
|
|
|
@@ -78,10 +81,7 @@ class LotteryImageService
|
|
|
$rows .= '</tr>';
|
|
|
}
|
|
|
|
|
|
- $time = now()->format('Y-m-d H:i:s');
|
|
|
- $lang = App::getLocale();
|
|
|
- $group_language = Config::where('field', 'group_language')->first()->val;
|
|
|
- App::setLocale($group_language);
|
|
|
+
|
|
|
$Canada28LotteryResults = lang("加拿大28开奖记录");
|
|
|
$recentLotteryResults = lang("最近开奖记录");
|
|
|
$th1 = lang("回合");
|