|
@@ -241,6 +241,7 @@ class BetService extends BaseService
|
|
|
private static function singleNote($memberId, $keywords, $amount, &$issueNo, &$text, &$errText): bool
|
|
private static function singleNote($memberId, $keywords, $amount, &$issueNo, &$text, &$errText): bool
|
|
|
{
|
|
{
|
|
|
$errText .= "【{$keywords}{$amount}】\n";
|
|
$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) {
|
|
@@ -330,21 +331,14 @@ class BetService extends BaseService
|
|
|
BalanceLogService::addLog($memberId, -$amount, $balance, ($balance - $amount), '投注', $bet_id, '');
|
|
BalanceLogService::addLog($memberId, -$amount, $balance, ($balance - $amount), '投注', $bet_id, '');
|
|
|
|
|
|
|
|
|
|
|
|
|
- $now = Carbon::now('America/New_York')->format('Y-m-d');
|
|
|
|
|
- $rebate = Config::where('field', 'rebate')->first()->val;
|
|
|
|
|
- $huishui_restriction = Config::where('field', 'huishui_restriction')->first()->val;
|
|
|
|
|
- $huishui_percentage = Config::where('field', 'huishui_percentage')->first()->val;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ //记录反水
|
|
|
$rebate = Rebate::addOrUpdate([
|
|
$rebate = Rebate::addOrUpdate([
|
|
|
- 'date' => $now,
|
|
|
|
|
'member_id' => $memberId,
|
|
'member_id' => $memberId,
|
|
|
'betting_amount' => $amount,
|
|
'betting_amount' => $amount,
|
|
|
- 'rebate_ratio' => $rebate,
|
|
|
|
|
'first_name' => $userInfo->first_name,
|
|
'first_name' => $userInfo->first_name,
|
|
|
'username' => $userInfo->username,
|
|
'username' => $userInfo->username,
|
|
|
- 'huishui_restriction' => $huishui_restriction,
|
|
|
|
|
- 'huishui_percentage' => $huishui_percentage,
|
|
|
|
|
]);
|
|
]);
|
|
|
-
|
|
|
|
|
if (!RebateService::BibiReturn($rebate, $amount)) {
|
|
if (!RebateService::BibiReturn($rebate, $amount)) {
|
|
|
$errText .= lang("比比返失败");
|
|
$errText .= lang("比比返失败");
|
|
|
return false;
|
|
return false;
|
|
@@ -369,7 +363,6 @@ class BetService extends BaseService
|
|
|
$inlineButton = self::getOperateButton();
|
|
$inlineButton = self::getOperateButton();
|
|
|
|
|
|
|
|
// 群通知
|
|
// 群通知
|
|
|
- // self::bettingGroupNotice($groupText, $inlineButton); // 群通知
|
|
|
|
|
self::asyncBettingGroupNotice($groupText, $inlineButton); // 异步群通知
|
|
self::asyncBettingGroupNotice($groupText, $inlineButton); // 异步群通知
|
|
|
|
|
|
|
|
return true;
|
|
return true;
|