作者 lyh

gx

... ... @@ -17,9 +17,16 @@ use Illuminate\Http\Request;
class VisitController extends BaseController
{
/**
* @remark :获取列表
* @name :index
* @author :lyh
* @method :post
* @time :2023/8/10 10:35
*/
public function index(VisitLogic $logic)
{
$data = $logic->getList();
$data = $logic->getVisitList($this->map,$this->page,$this->row,$this->order);
return $this->success($data);
}
... ...
... ... @@ -22,10 +22,11 @@ class VisitLogic extends BaseLogic
$this->model = new Visit();
}
public function getList(array $map = [], array $sort = ['id' => 'desc'], array $columns = ['*'], int $limit = 20)
public function getVisitList($map,$page,$row,$order,$filed = ['*'])
{
$map['domain'] = $this->user['domain'];
return Logic::getList($map, $sort, ['id', 'url', 'referrer_url', 'device_port', 'country', 'ip', 'depth', 'created_at'], $limit);
$lists = $this->model->lists($map,$page,$row,$order,$filed);
return $this->success($lists);
}
public function getItemList(array $map = [], array $sort = ['id' => 'desc'], array $columns = ['*'], int $limit = 20){
... ...