1.ws优化bet.win订阅,修复中大奖没有推送
This commit is contained in:
21
scripts/debug_period_bet_win.php
Normal file
21
scripts/debug_period_bet_win.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
require_once __DIR__ . '/../support/bootstrap.php';
|
||||
|
||||
use support\think\Db;
|
||||
|
||||
$periodNo = $argv[1] ?? '20260526-190442-c340448b';
|
||||
$gr = Db::name('game_record')->where('period_no', $periodNo)->find();
|
||||
if (!is_array($gr)) {
|
||||
fwrite(STDERR, "period not found: {$periodNo}\n");
|
||||
exit(1);
|
||||
}
|
||||
$pid = (int) $gr['id'];
|
||||
$bets = Db::name('bet_order')->where('period_id', $pid)->select()->toArray();
|
||||
echo "period_id={$pid} status={$gr['status']} result={$gr['result_number']}\n";
|
||||
foreach ($bets as $b) {
|
||||
echo "bet {$b['id']} user={$b['user_id']} status={$b['status']} win={$b['win_amount']}\n";
|
||||
}
|
||||
Reference in New Issue
Block a user