1.抽奖测试记录页面/dice/play_record_test/index增加彩金池配置筛选条件

This commit is contained in:
2026-06-04 10:31:48 +08:00
parent 58a4b229a8
commit 5d316ef7d6
6 changed files with 108 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ class DicePlayRecordTestController extends BaseController
{
$where = $request->more([
['reward_config_record_id', ''],
['lottery_config_id', ''],
['lottery_type', ''],
['direction', ''],
['is_win', ''],

View File

@@ -73,6 +73,15 @@ class DicePlayRecordTest extends DiceModel
return $this->belongsTo(DiceRewardConfigRecord::class, 'reward_config_record_id', 'id');
}
/** 彩金池配置 id关联 dice_lottery_pool_config.id */
public function searchLotteryConfigIdAttr($query, $value): void
{
if ($value === '' || $value === null) {
return;
}
$query->where('lottery_config_id', '=', (int) $value);
}
/** 抽奖类型 0=付费 1=免费 */
public function searchLotteryTypeAttr($query, $value)
{