| // +------------------------------------------------+ namespace app\system\controller; use app\common\model\VipOrder; use app\common\service\Vip as VipService; class Vip extends _Init { public function index($title = '') { $map = []; if (!empty($title)) { $ids = VipService::getIds($title); $map['uid'] = ['in', $ids]; } $this->list = VipOrder::where($map)->order('create_time desc')->paginate(); return $this->fetch(''); } public function info($id) { $this->list = VipOrder::where('uid', $id)->paginate(); return $this->fetch(''); } }