update:更新搜索
This commit is contained in:
parent
0e3656c7cc
commit
e0007d4150
@ -118,8 +118,8 @@ class CatchQuery extends Query
|
|||||||
|
|
||||||
foreach ($params as $field => $value) {
|
foreach ($params as $field => $value) {
|
||||||
$method = 'search' . Str::studly($field) . 'Attr';
|
$method = 'search' . Str::studly($field) . 'Attr';
|
||||||
if (method_exists($this->model, $method)) {
|
if ($value && method_exists($this->model, $method)) {
|
||||||
$this->model->$method($this, $value ?? null, $params);
|
$this->model->$method($this, $value, $params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user