|
|
@@ -953,9 +953,12 @@ class BetService extends BaseService
|
|
|
// shuffle($openList);
|
|
|
// Log::error('lotteryNotice openList', $openList);
|
|
|
|
|
|
-
|
|
|
- $text = "{$issue_no}期开奖结果";
|
|
|
- $text .= "\n-----本期开奖账单----- \n";
|
|
|
+ $lang = App::getLocale();
|
|
|
+ $group_language = Config::where('field', 'group_language')->first()->val;
|
|
|
+ App::setLocale($group_language);
|
|
|
+ $text = "{$issue_no}" . lang("期开奖结果");
|
|
|
+ $text .= "\n-----" . lang("本期开奖账单") . "----- \n";
|
|
|
+ App::setLocale($lang);
|
|
|
foreach ($openList as $k => $v) {
|
|
|
|
|
|
|
|
|
@@ -971,14 +974,18 @@ class BetService extends BaseService
|
|
|
}
|
|
|
|
|
|
if (($k + 1) <= $noticeNum) {
|
|
|
- $text .= "用户ID:{$v['lastStr']} \n";
|
|
|
- $text .= "下注类型:[" . implode(',', $v['keywords']) . "] \n";
|
|
|
- $text .= "中奖类型:[" . $openKeyword . "] \n";
|
|
|
- $text .= "投注金额:{$amount} \n";
|
|
|
- $text .= "中奖金额:{$v['win_amount']} \n";
|
|
|
- $text .= "派彩金额:{$profit} \n";
|
|
|
- $text .= "盈亏金额:{$yl} \n";
|
|
|
+ $lang = App::getLocale();
|
|
|
+ $group_language = Config::where('field', 'group_language')->first()->val;
|
|
|
+ App::setLocale($group_language);
|
|
|
+ $text .= lang("用户ID").":{$v['lastStr']} \n";
|
|
|
+ $text .= lang("下注类型").":[" . implode(',', $v['keywords']) . "] \n";
|
|
|
+ $text .= lang('中奖类型').":[" . $openKeyword . "] \n";
|
|
|
+ $text .= lang('投注金额').":{$amount} \n";
|
|
|
+ $text .= lang('中奖金额').":{$v['win_amount']} \n";
|
|
|
+ $text .= lang('派彩金额').":{$profit} \n";
|
|
|
+ $text .= lang("盈亏金额").":{$yl} \n";
|
|
|
$text .= "-------------------------------- \n";
|
|
|
+ App::setLocale($lang);
|
|
|
}
|
|
|
|
|
|
if ($v['is_send']) {
|
|
|
@@ -1043,8 +1050,8 @@ class BetService extends BaseService
|
|
|
$lang = App::getLocale();
|
|
|
$group_language = Config::where('field', 'group_language')->first()->val;
|
|
|
App::setLocale($group_language);
|
|
|
- $text3 = "📝 {$issue_no}".lang('期投注统计')." \n";
|
|
|
- $text3 .= lang("玩法")." ".lang("总投")." \n";
|
|
|
+ $text3 = "📝 {$issue_no}" . lang('期投注统计') . " \n";
|
|
|
+ $text3 .= lang("玩法") . " " . lang("总投") . " \n";
|
|
|
|
|
|
if ($keywordsList) {
|
|
|
ksort($keywordsList);
|