|
@@ -3,23 +3,14 @@
|
|
|
|
|
|
|
|
namespace App\Services;
|
|
namespace App\Services;
|
|
|
|
|
|
|
|
-use App\Http\Controllers\admin\GameplayRule;
|
|
|
|
|
|
|
+use App\Models\PcIssue;
|
|
|
use App\Models\Rebate;
|
|
use App\Models\Rebate;
|
|
|
use App\Models\User;
|
|
use App\Models\User;
|
|
|
-use App\Services\BalanceLogService;
|
|
|
|
|
-use App\Services\BaseService;
|
|
|
|
|
use App\Models\Bet;
|
|
use App\Models\Bet;
|
|
|
use App\Models\Config;
|
|
use App\Models\Config;
|
|
|
-use App\Services\GameplayRuleService;
|
|
|
|
|
-use App\Services\IssueService;
|
|
|
|
|
-use App\Services\UserService;
|
|
|
|
|
-use App\Services\WalletService;
|
|
|
|
|
-use Carbon\Carbon;
|
|
|
|
|
use Illuminate\Support\Facades\App;
|
|
use Illuminate\Support\Facades\App;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
-use Illuminate\Support\Collection;
|
|
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
-use Illuminate\Support\Facades\Log;
|
|
|
|
|
use App\Jobs\SendTelegramMessageJob;
|
|
use App\Jobs\SendTelegramMessageJob;
|
|
|
use App\Jobs\SendTelegramGroupMessageJob;
|
|
use App\Jobs\SendTelegramGroupMessageJob;
|
|
|
use Exception;
|
|
use Exception;
|
|
@@ -388,6 +379,7 @@ class BetService extends BaseService
|
|
|
if ($betFake) {
|
|
if ($betFake) {
|
|
|
// 期数验证
|
|
// 期数验证
|
|
|
$issueInfo = IssueService::model()::where('status', IssueService::model()::STATUS_BETTING)->orderBy('id', 'desc')->first();
|
|
$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();
|
|
|
if ($issueInfo) {
|
|
if ($issueInfo) {
|
|
|
$betFakeRandAmount = Config::where('field', 'bet_fake_rand_amount')->first()->val;
|
|
$betFakeRandAmount = Config::where('field', 'bet_fake_rand_amount')->first()->val;
|
|
|
$betFakeRandAmount = explode(',', $betFakeRandAmount);
|
|
$betFakeRandAmount = explode(',', $betFakeRandAmount);
|