first commit
This commit is contained in:
32
application/system/controller/Vip.php
Normal file
32
application/system/controller/Vip.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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('');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user