33 lines
1006 B
PHP
33 lines
1006 B
PHP
<?php
|
||
// +------------------------------------------------+
|
||
// |http://www.cjango.com |
|
||
// +------------------------------------------------+
|
||
// | 修复BUG不是一朝一夕的事情,等我喝醉了再说吧! |
|
||
// +------------------------------------------------+
|
||
// | Author: 小陈叔叔 <Jason.Chen> |
|
||
// +------------------------------------------------+
|
||
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('');
|
||
}
|
||
}
|