Xzfenhong.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace app\admin\controller\system;
  3. use app\admin\logic\UserteamLogLogic;
  4. use app\common\controller\AdminController;
  5. use app\common\model\PayConfigModel;
  6. use app\common\model\SystemFaq;
  7. use app\common\model\UserteamLogModel;
  8. use think\App;
  9. /**
  10. * @ControllerAnnotation(title="星钻等级分红")
  11. */
  12. class Xzfenhong extends AdminController
  13. {
  14. use \app\admin\traits\Curd;
  15. public function __construct (App $app)
  16. {
  17. parent::__construct($app);
  18. $this->model = new UserteamLogModel();
  19. }
  20. /**
  21. * @NodeAnotation(title="列表")
  22. */
  23. public function index ()
  24. {
  25. if ($this->request->isAjax()) {
  26. // }
  27. list($page, $limit, $where) = $this->buildTableParames();
  28. list($count, $list) = UserteamLogLogic::getList($page, $limit, $where, $this->sort);
  29. $data = [
  30. 'code' => 0,
  31. 'msg' => '',
  32. 'count' => $count,
  33. 'data' => $list,
  34. ];
  35. return json($data);
  36. }
  37. return $this->fetch();
  38. }
  39. }