|
@@ -215,6 +215,8 @@ class BetService extends BaseService
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
$msg['text'] = $text;
|
|
$msg['text'] = $text;
|
|
|
|
|
+ $msg['text'] .= "\n\n";
|
|
|
|
|
+ $msg['text'] .= $errText;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -232,17 +234,17 @@ class BetService extends BaseService
|
|
|
|
|
|
|
|
private static function singleNote($memberId, $keywords, $amount, &$issueNo, &$text, &$errText)
|
|
private static function singleNote($memberId, $keywords, $amount, &$issueNo, &$text, &$errText)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
|
|
+ $errText .= "{$keywords}{$amount}\n";
|
|
|
$serviceAccount = Config::where('field', 'service_customer')->first()->val;
|
|
$serviceAccount = Config::where('field', 'service_customer')->first()->val;
|
|
|
$gameplayRuleInfo = GameplayRuleService::getGameplayRules($keywords);
|
|
$gameplayRuleInfo = GameplayRuleService::getGameplayRules($keywords);
|
|
|
if ($gameplayRuleInfo == null) {
|
|
if ($gameplayRuleInfo == null) {
|
|
|
- $errText = lang("玩法未配置!") . "\n";
|
|
|
|
|
|
|
+ $errText .= lang("玩法未配置!") . "\n";
|
|
|
$errText .= lang("任何疑问都可以联系唯一财务") . ":@{$serviceAccount}";
|
|
$errText .= lang("任何疑问都可以联系唯一财务") . ":@{$serviceAccount}";
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if ($gameplayRuleInfo['odds'] <= 0) {
|
|
if ($gameplayRuleInfo['odds'] <= 0) {
|
|
|
- $errText = lang("赔率为0 庄家通吃 禁止投注!") . "\n";
|
|
|
|
|
|
|
+ $errText .= lang("赔率为0 庄家通吃 禁止投注!") . "\n";
|
|
|
$errText .= lang("任何疑问都可以联系唯一财务") . ":@{$serviceAccount}";
|
|
$errText .= lang("任何疑问都可以联系唯一财务") . ":@{$serviceAccount}";
|
|
|
return false;
|
|
return false;
|
|
|
|
|
|
|
@@ -253,36 +255,36 @@ class BetService extends BaseService
|
|
|
if (empty($issueInfo)) {
|
|
if (empty($issueInfo)) {
|
|
|
$issueCloseInfo = IssueService::model()::where('status', IssueService::model()::STATUS_CLOSE)->orderBy('id', 'desc')->first();
|
|
$issueCloseInfo = IssueService::model()::where('status', IssueService::model()::STATUS_CLOSE)->orderBy('id', 'desc')->first();
|
|
|
if (empty($issueCloseInfo)) {
|
|
if (empty($issueCloseInfo)) {
|
|
|
- $errText = lang("暂无可下注期数,本次下注无效!");
|
|
|
|
|
|
|
+ $errText .= lang("暂无可下注期数,本次下注无效!");
|
|
|
return false;
|
|
return false;
|
|
|
} else {
|
|
} else {
|
|
|
- $errText = lang("封盘中,本次下注无效!");
|
|
|
|
|
|
|
+ $errText .= lang("封盘中,本次下注无效!");
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!is_numeric($amount) || $amount <= 0) {
|
|
if (!is_numeric($amount) || $amount <= 0) {
|
|
|
- $errText = lang("投注金额格式不正确!");
|
|
|
|
|
|
|
+ $errText .= lang("投注金额格式不正确!");
|
|
|
$errText .= lang("任何疑问都可以联系唯一财务") . ":@{$serviceAccount}";
|
|
$errText .= lang("任何疑问都可以联系唯一财务") . ":@{$serviceAccount}";
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$now_date = date('Y-m-d H:i:s', time() + 30); // 提前30秒
|
|
$now_date = date('Y-m-d H:i:s', time() + 30); // 提前30秒
|
|
|
if ($issueInfo['end_time'] < $now_date) {
|
|
if ($issueInfo['end_time'] < $now_date) {
|
|
|
- $errText = lang("封盘中,本次下注无效!");
|
|
|
|
|
|
|
+ $errText .= lang("封盘中,本次下注无效!");
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 投注限制校验
|
|
// 投注限制校验
|
|
|
if ($amount < $gameplayRuleInfo['mininum']) {
|
|
if ($amount < $gameplayRuleInfo['mininum']) {
|
|
|
- $errText = lang("下注失败,最小金额限制") . "{$gameplayRuleInfo['mininum']}\n";
|
|
|
|
|
|
|
+ $errText .= lang("下注失败,最小金额限制") . "{$gameplayRuleInfo['mininum']}\n";
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 投注限制校验
|
|
// 投注限制校验
|
|
|
if ($amount > $gameplayRuleInfo['maxinum']) {
|
|
if ($amount > $gameplayRuleInfo['maxinum']) {
|
|
|
- $errText = lang("下注失败,最大金额限制") . "{$gameplayRuleInfo['maxinum']}\n";
|
|
|
|
|
|
|
+ $errText .= lang("下注失败,最大金额限制") . "{$gameplayRuleInfo['maxinum']}\n";
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -292,7 +294,7 @@ class BetService extends BaseService
|
|
|
|
|
|
|
|
// 余额计算
|
|
// 余额计算
|
|
|
if ($balance < $amount) {
|
|
if ($balance < $amount) {
|
|
|
- $errText = lang("余额不足,本次下注无效!\n");
|
|
|
|
|
|
|
+ $errText .= lang("余额不足,本次下注无效!\n");
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -338,8 +340,7 @@ class BetService extends BaseService
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
if (!RebateService::BibiReturn($rebate, $amount)) {
|
|
if (!RebateService::BibiReturn($rebate, $amount)) {
|
|
|
- $errText = lang("比比返失败");
|
|
|
|
|
- $errText .= "\n";
|
|
|
|
|
|
|
+ $errText .= lang("比比返失败");
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|