Rcblog.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace app\common\model;
  3. use think\facade\Db;
  4. /**
  5. * ============================================================================
  6. *
  7. * ============================================================================
  8. * 版权所有 2014-2028 浙江惠利玛产业互联网有限公司,并保留所有权利。
  9. * 网站地址: https://www.valimart.net/
  10. * ----------------------------------------------------------------------------
  11. *
  12. * ============================================================================
  13. * 数据层模型
  14. */
  15. class Rcblog extends BaseModel
  16. {
  17. public $page_info;
  18. /**
  19. * 获取列表
  20. * @access public
  21. * @author csdeshang
  22. * @param array $condition 条件
  23. * @param string $pagesize 分页
  24. * @param string $order 排序
  25. * @return array
  26. */
  27. public function getRechargecardBalanceLogList($condition, $pagesize, $order)
  28. {
  29. $res =Db::name('rcblog')->where($condition)->order($order)->paginate(['list_rows'=>$pagesize,'query' => request()->param()],false);
  30. $this->page_info=$res;
  31. return $res->items();
  32. }
  33. }