|
|
@@ -65,15 +65,15 @@ class ItemChestConfigController extends AdminController
|
|
|
|
|
|
$grid->column('item_id', '宝箱ID')->sortable();
|
|
|
|
|
|
- $grid->column('consume_group.name', '消耗组')->display(function ($name) {
|
|
|
+ $grid->column('consumeGroup.name', '消耗组')->display(function ($name) {
|
|
|
return $name ?: '<span class="text-muted">无消耗</span>';
|
|
|
});
|
|
|
|
|
|
- $grid->column('reward_group.name', '奖励组')->display(function ($name) {
|
|
|
+ $grid->column('rewardGroup.name', '奖励组')->display(function ($name) {
|
|
|
return $name ?: '<span class="text-danger">未配置</span>';
|
|
|
});
|
|
|
|
|
|
- $grid->column('condition_group.name', '条件组')->display(function ($name) {
|
|
|
+ $grid->column('conditionGroup.name', '条件组')->display(function ($name) {
|
|
|
return $name ?: '<span class="text-muted">无条件</span>';
|
|
|
});
|
|
|
|
|
|
@@ -127,21 +127,21 @@ class ItemChestConfigController extends AdminController
|
|
|
$show->field('item_id', '宝箱ID');
|
|
|
|
|
|
$show->divider('消耗组配置');
|
|
|
- $show->field('consume_group.name', '消耗组名称');
|
|
|
- $show->field('consume_group.code', '消耗组编码');
|
|
|
- $show->field('consume_group.description', '消耗组描述');
|
|
|
+ $show->field('consumeGroup.name', '消耗组名称');
|
|
|
+ $show->field('consumeGroup.code', '消耗组编码');
|
|
|
+ $show->field('consumeGroup.description', '消耗组描述');
|
|
|
|
|
|
$show->divider('奖励组配置');
|
|
|
- $show->field('reward_group.name', '奖励组名称');
|
|
|
- $show->field('reward_group.code', '奖励组编码');
|
|
|
- $show->field('reward_group.description', '奖励组描述');
|
|
|
- $show->field('reward_group.is_random', '是否随机')->using([0 => '否', 1 => '是']);
|
|
|
- $show->field('reward_group.random_count', '随机数量');
|
|
|
+ $show->field('rewardGroup.name', '奖励组名称');
|
|
|
+ $show->field('rewardGroup.code', '奖励组编码');
|
|
|
+ $show->field('rewardGroup.description', '奖励组描述');
|
|
|
+ $show->field('rewardGroup.is_random', '是否随机')->using([0 => '否', 1 => '是']);
|
|
|
+ $show->field('rewardGroup.random_count', '随机数量');
|
|
|
|
|
|
$show->divider('条件组配置');
|
|
|
- $show->field('condition_group.name', '条件组名称');
|
|
|
- $show->field('condition_group.code', '条件组编码');
|
|
|
- $show->field('condition_group.description', '条件组描述');
|
|
|
+ $show->field('conditionGroup.name', '条件组名称');
|
|
|
+ $show->field('conditionGroup.code', '条件组编码');
|
|
|
+ $show->field('conditionGroup.description', '条件组描述');
|
|
|
|
|
|
$show->divider('基本信息');
|
|
|
$show->field('is_active', '状态')->using([0 => '未激活', 1 => '激活']);
|