Rcblog.php 798 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace app\common\model;
  3. use think\facade\Db;
  4. /**
  5. *
  6. *
  7. * ----------------------------------------------------------------------------
  8. *
  9. * 数据层模型
  10. */
  11. class Rcblog extends BaseModel
  12. {
  13. public $page_info;
  14. /**
  15. * 获取列表
  16. * @access public
  17. * @author csdeshang
  18. * @param array $condition 条件
  19. * @param string $pagesize 分页
  20. * @param string $order 排序
  21. * @return array
  22. */
  23. public function getRechargecardBalanceLogList($condition, $pagesize, $order)
  24. {
  25. $res = Db::name('rcblog')->where($condition)->order($order)->paginate(['list_rows' => $pagesize, 'query' => request()->param()], false);
  26. $this->page_info = $res;
  27. return $res->items();
  28. }
  29. }