1.抽奖测试记录页面/dice/play_record_test/index增加彩金池配置筛选条件
This commit is contained in:
@@ -40,6 +40,7 @@ class DicePlayRecordTestController extends BaseController
|
||||
{
|
||||
$where = $request->more([
|
||||
['reward_config_record_id', ''],
|
||||
['lottery_config_id', ''],
|
||||
['lottery_type', ''],
|
||||
['direction', ''],
|
||||
['is_win', ''],
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user