优化抽奖记录(测试权重)页面

This commit is contained in:
2026-03-27 14:37:31 +08:00
parent ded5e82e16
commit 2f05ac0cd9
2 changed files with 10 additions and 0 deletions

View File

@@ -283,6 +283,12 @@ class WeightTestRunner
$payload[$column] = $row[$column]; $payload[$column] = $row[$column];
} }
} }
if (!array_key_exists('create_time', $payload) || $payload['create_time'] === null || $payload['create_time'] === '') {
$payload['create_time'] = date('Y-m-d H:i:s');
}
if (!array_key_exists('update_time', $payload) || $payload['update_time'] === null || $payload['update_time'] === '') {
$payload['update_time'] = $payload['create_time'];
}
if ($payload === []) { if ($payload === []) {
continue; continue;
} }

View File

@@ -51,6 +51,10 @@ class DicePlayRecordTest extends BaseModel
*/ */
protected $table = 'dice_play_record_test'; protected $table = 'dice_play_record_test';
protected $createTime = 'create_time';
protected $updateTime = 'update_time';
/** /**
* 彩金池配置 * 彩金池配置
* 关联 lottery_config_id -> DiceLotteryPoolConfig.id * 关联 lottery_config_id -> DiceLotteryPoolConfig.id