You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
998 B
37 lines
998 B
<?php
|
|
|
|
namespace app\admin\controller\user;
|
|
|
|
use app\common\controller\AdminController;
|
|
use app\admin\model\UserPointsLog as UserPointsLogModel;
|
|
use think\App;
|
|
|
|
class Userpointslog extends AdminController
|
|
{
|
|
|
|
public function __construct(App $app)
|
|
{
|
|
parent::__construct($app);
|
|
$this->model = new UserPointsLogModel();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
if ($this->request->isAjax()) {
|
|
if (input('selectFields')) {
|
|
return $this->selectList();
|
|
}
|
|
list($page, $limit, $where) = $this->buildTableParames();
|
|
$param = ['page' => $page, 'limit' => $limit];
|
|
$pageList = UserPointsLogModel::getPageList($param, $where, '');
|
|
$data = [
|
|
'code' => 0,
|
|
'msg' => '',
|
|
'count' => $pageList['count'],
|
|
'data' => $pageList['data']
|
|
];
|
|
return json($data);
|
|
}
|
|
return $this->fetch();
|
|
}
|
|
}
|
|
|