修改搜索
This commit is contained in:
parent
c60d8d2dc9
commit
ea6a4b15a8
@ -3,6 +3,7 @@ namespace catcher;
|
||||
|
||||
use catcher\base\CatchModel;
|
||||
use think\db\Query;
|
||||
use think\helper\Str;
|
||||
use think\Paginator;
|
||||
|
||||
class CatchQuery extends Query
|
||||
@ -115,7 +116,14 @@ class CatchQuery extends Query
|
||||
return $this;
|
||||
}
|
||||
|
||||
return $this->withSearch(array_keys($params), Utils::filterSearchParams($params));
|
||||
foreach ($params as $field => $value) {
|
||||
$method = 'search' . Str::studly($field) . 'Attr';
|
||||
if (method_exists($this->model, $method)) {
|
||||
$this->model->$method($this, $value ?? null, $params);
|
||||
}
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
1
extend/catcher/command/worker/ExcelTaskCommand.php
Normal file
1
extend/catcher/command/worker/ExcelTaskCommand.php
Normal file
@ -0,0 +1 @@
|
||||
<?php
|
Loading…
x
Reference in New Issue
Block a user