You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
513 B
24 lines
513 B
<?php
|
|
|
|
namespace app\admin\controller\example;
|
|
|
|
use app\common\controller\Backend;
|
|
|
|
/**
|
|
* 自定义搜索
|
|
*
|
|
* @icon fa fa-search
|
|
* @remark 自定义列表的搜索
|
|
*/
|
|
class Customsearch extends Backend
|
|
{
|
|
protected $model = null;
|
|
|
|
public function _initialize()
|
|
{
|
|
parent::_initialize();
|
|
$this->model = model('AdminLog');
|
|
$ipList = $this->model->whereTime('createtime', '-37 days')->group("ip")->column("ip,ip as aa");
|
|
$this->view->assign("ipList", $ipList);
|
|
}
|
|
}
|
|
|