22 lines
676 B
PHP
22 lines
676 B
PHP
<?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";
|
|
}
|