Files
fast/addons/shopro/controller/zy/Gym.php
2025-05-11 16:46:19 +08:00

30 lines
577 B
PHP

<?php
namespace addons\shopro\controller\zy;
class Gym extends Base
{
protected $noNeedRight = ['*'];
public function __construct()
{
$this->model = new \app\admin\model\zy\Stadium;
parent::__construct();
}
public function index()
{
$params = $this->request->param();
$model = $this->model->where('status', 1);
if (isset($params['name'])) {
$model->where('name', 'like', '%' . $params['name'] . '%');
}
$res = $model->select();
$this->success('Success', $res);
}
}