|
|
@@ -322,7 +322,6 @@ class BetService extends BaseService
|
|
|
BalanceLogService::addLog($memberId, -$amount, $balance, ($balance - $amount), '投注', $bet_id, '');
|
|
|
|
|
|
|
|
|
-
|
|
|
//记录反水
|
|
|
$rebate = Rebate::addOrUpdate([
|
|
|
'member_id' => $memberId,
|
|
|
@@ -378,8 +377,14 @@ class BetService extends BaseService
|
|
|
$betFake = Config::where('field', 'bet_fake')->first()->val;
|
|
|
if ($betFake) {
|
|
|
// 期数验证
|
|
|
- $issueInfo = IssueService::model()::where('status', IssueService::model()::STATUS_BETTING)->orderBy('id', 'desc')->first();
|
|
|
-// $issueInfo = PcIssue::where('status', IssueService::model()::STATUS_BETTING)->orderBy('id', 'desc')->first();
|
|
|
+
|
|
|
+ $pc28Switch = Config::where('field', 'pc28_switch')->first()->val;
|
|
|
+ if ($pc28Switch == 1) {
|
|
|
+ $issueInfo = PcIssue::where('status', IssueService::model()::STATUS_BETTING)->orderBy('id', 'desc')->first();
|
|
|
+ } else {
|
|
|
+ $issueInfo = IssueService::model()::where('status', IssueService::model()::STATUS_BETTING)->orderBy('id', 'desc')->first();
|
|
|
+ }
|
|
|
+
|
|
|
if ($issueInfo) {
|
|
|
$betFakeRandAmount = Config::where('field', 'bet_fake_rand_amount')->first()->val;
|
|
|
$betFakeRandAmount = explode(',', $betFakeRandAmount);
|