feat: configure hot leagues in match center
This commit is contained in:
@@ -8,10 +8,12 @@ class LeagueValidate extends BaseValidate
|
||||
{
|
||||
protected $rule = [
|
||||
'id' => 'require',
|
||||
'is_hot' => 'in:0,1',
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'id.require' => '联赛id不能为空',
|
||||
'is_hot.in' => '热门联赛状态值错误',
|
||||
];
|
||||
|
||||
public function sceneDetail()
|
||||
@@ -21,7 +23,7 @@ class LeagueValidate extends BaseValidate
|
||||
|
||||
public function sceneEdit()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
return $this->only(['id', 'is_hot']);
|
||||
}
|
||||
|
||||
public function sceneDelete()
|
||||
|
||||
Reference in New Issue
Block a user