1
0
Files
helper/application/system/controller/Vip.php
2020-08-06 14:58:51 +08:00

33 lines
1006 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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('');
}
}