|
@@ -45,8 +45,8 @@ class GameplayRuleService extends BaseService
|
|
public static function getWhere(array $search = []) :array
|
|
public static function getWhere(array $search = []) :array
|
|
{
|
|
{
|
|
$where = [];
|
|
$where = [];
|
|
- if(isset($search['group']) && !empty($search['group'])){
|
|
|
|
- $where[] = ['group', '=', $search['group']];
|
|
|
|
|
|
+ if(isset($search['groups']) && !empty($search['groups'])){
|
|
|
|
+ $where[] = ['groups', '=', $search['groups']];
|
|
}
|
|
}
|
|
if(isset($search['keywords']) && !empty($search['keywords'])){
|
|
if(isset($search['keywords']) && !empty($search['keywords'])){
|
|
$where[] = ['keywords', '=', $search['keywords']];
|
|
$where[] = ['keywords', '=', $search['keywords']];
|