Rcblog.php 1.0 KB

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