|
|
@@ -174,8 +174,8 @@ class BetService extends BaseService
|
|
|
|
|
|
$serviceAccount = Config::where('field', 'service_customer')->first()->val;
|
|
|
if ($betResult == null) {
|
|
|
- $text = "消息格式错误!\n";
|
|
|
- $text .= "任何疑问都可以联系唯一客服:@{$serviceAccount}";
|
|
|
+ $text = lang("消息格式错误!")."\n";
|
|
|
+ $text .= lang("任何疑问都可以联系唯一客服").":@{$serviceAccount}";
|
|
|
$msg['text'] = $text;
|
|
|
if ($messageId) {
|
|
|
$msg['reply_to_message_id'] = $messageId;
|
|
|
@@ -188,8 +188,8 @@ class BetService extends BaseService
|
|
|
|
|
|
$gameplayRuleInfo = GameplayRuleService::getGameplayRules($keywords);
|
|
|
if ($gameplayRuleInfo == null) {
|
|
|
- $text = "玩法未配置!\n";
|
|
|
- $text .= "任何疑问都可以联系唯一财务:@{$serviceAccount}";
|
|
|
+ $text = lang("玩法未配置!")."\n";
|
|
|
+ $text .= lang("任何疑问都可以联系唯一财务").":@{$serviceAccount}";
|
|
|
$msg['text'] = $text;
|
|
|
if ($messageId) {
|
|
|
$msg['reply_to_message_id'] = $messageId;
|
|
|
@@ -198,8 +198,8 @@ class BetService extends BaseService
|
|
|
}
|
|
|
|
|
|
if ($gameplayRuleInfo['odds'] <= 0) {
|
|
|
- $text = "赔率为0 庄家通吃 禁止投注!\n";
|
|
|
- $text .= "任何疑问都可以联系唯一财务:@{$serviceAccount}";
|
|
|
+ $text = lang("赔率为0 庄家通吃 禁止投注!")."\n";
|
|
|
+ $text .= lang("任何疑问都可以联系唯一财务").":@{$serviceAccount}";
|
|
|
$msg['text'] = $text;
|
|
|
if ($messageId) {
|
|
|
$msg['reply_to_message_id'] = $messageId;
|
|
|
@@ -213,7 +213,7 @@ class BetService extends BaseService
|
|
|
if (empty($issueInfo)) {
|
|
|
$issueCloseInfo = IssueService::model()::where('status', IssueService::model()::STATUS_CLOSE)->orderBy('id', 'desc')->first();
|
|
|
if (empty($issueCloseInfo)) {
|
|
|
- $text = "暂无可下注期数,本次下注无效!\n";
|
|
|
+ $text = lang("暂无可下注期数,本次下注无效!")."\n";
|
|
|
|
|
|
$msg['text'] = $text;
|
|
|
if ($messageId) {
|
|
|
@@ -221,7 +221,7 @@ class BetService extends BaseService
|
|
|
}
|
|
|
return $msg;
|
|
|
} else {
|
|
|
- $text = "封盘中,本次下注无效!\n";
|
|
|
+ $text = lang("封盘中,本次下注无效!")."\n";
|
|
|
|
|
|
$msg['text'] = $text;
|
|
|
if ($messageId) {
|
|
|
@@ -233,8 +233,8 @@ class BetService extends BaseService
|
|
|
|
|
|
|
|
|
if (!is_numeric($amount) || $amount <= 0) {
|
|
|
- $text = "投注金额格式不正确!\n";
|
|
|
- $text .= "任何疑问都可以联系唯一财务:@{$serviceAccount}";
|
|
|
+ $text = lang("投注金额格式不正确!")."\n";
|
|
|
+ $text .= lang("任何疑问都可以联系唯一财务").":@{$serviceAccount}";
|
|
|
$msg['text'] = $text;
|
|
|
if ($messageId) {
|
|
|
$msg['reply_to_message_id'] = $messageId;
|
|
|
@@ -244,7 +244,7 @@ class BetService extends BaseService
|
|
|
|
|
|
$now_date = date('Y-m-d H:i:s', time() + 30); // 提前30秒
|
|
|
if ($issueInfo['end_time'] < $now_date) {
|
|
|
- $text = "封盘中,本次下注无效!\n";
|
|
|
+ $text = lang("封盘中,本次下注无效!")."\n";
|
|
|
|
|
|
$msg['text'] = $text;
|
|
|
if ($messageId) {
|
|
|
@@ -255,7 +255,7 @@ class BetService extends BaseService
|
|
|
|
|
|
// 投注限制校验
|
|
|
if ($amount < $gameplayRuleInfo['mininum']) {
|
|
|
- $text = "下注失败,最小金额限制{$gameplayRuleInfo['mininum']}\n";
|
|
|
+ $text = lang("下注失败,最小金额限制")."{$gameplayRuleInfo['mininum']}\n";
|
|
|
$msg['text'] = $text;
|
|
|
if ($messageId) {
|
|
|
$msg['reply_to_message_id'] = $messageId;
|
|
|
@@ -265,7 +265,7 @@ class BetService extends BaseService
|
|
|
|
|
|
// 投注限制校验
|
|
|
if ($amount > $gameplayRuleInfo['maxinum']) {
|
|
|
- $text = "下注失败,最大金额限制{$gameplayRuleInfo['maxinum']}\n";
|
|
|
+ $text = lang("下注失败,最大金额限制")."{$gameplayRuleInfo['maxinum']}\n";
|
|
|
$msg['text'] = $text;
|
|
|
if ($messageId) {
|
|
|
$msg['reply_to_message_id'] = $messageId;
|
|
|
@@ -279,7 +279,7 @@ class BetService extends BaseService
|
|
|
|
|
|
// 余额计算
|
|
|
if ($balance < $amount) {
|
|
|
- $text = "余额不足,本次下注无效!\n";
|
|
|
+ $text = lang("余额不足,本次下注无效!\n");
|
|
|
$msg['text'] = $text;
|
|
|
if ($messageId) {
|
|
|
$msg['reply_to_message_id'] = $messageId;
|
|
|
@@ -344,21 +344,21 @@ class BetService extends BaseService
|
|
|
|
|
|
// }
|
|
|
|
|
|
- $text = "下注期数:{$issueInfo->issue_no}\n";
|
|
|
- $text .= "下注内容\n";
|
|
|
+ $text = lang('下注期数').":{$issueInfo->issue_no}\n";
|
|
|
+ $text .= lang("下注内容")."\n";
|
|
|
$text .= "--------\n";
|
|
|
$text .= "{$input}\n";
|
|
|
$text .= "--------\n";
|
|
|
- $text .= "下注成功\n";
|
|
|
+ $text .= lang("下注成功")."\n";
|
|
|
$msg['text'] = $text;
|
|
|
|
|
|
// $lastStr = self::getLastChar($userInfo->first_name, 1);
|
|
|
$lastStr = self::hideMiddleDigits($userInfo->member_id, 4);
|
|
|
|
|
|
- $groupText = "";
|
|
|
- $groupText .= "会员下注 【" . $lastStr . "】 \n";
|
|
|
- $groupText .= "下注期数:{$issueInfo->issue_no} \n";
|
|
|
- $groupText .= "下注内容: \n";
|
|
|
+
|
|
|
+ $groupText = lang("会员下注")." 【" . $lastStr . "】 \n";
|
|
|
+ $groupText .= lang('下注期数').":{$issueInfo->issue_no} \n";
|
|
|
+ $groupText .= lang("下注内容").": \n";
|
|
|
$groupText .= "----------- \n";
|
|
|
$groupText .= "{$input} \n";
|
|
|
$groupText .= "----------- \n";
|