payments.php 520 B

12345678910111213141516171819
  1. <?php
  2. namespace WY\app\controller\member;
  3. use WY\app\libs\Controller;
  4. if (!defined('WY_ROOT')) {
  5. exit;
  6. }
  7. class payments extends CheckUser
  8. {
  9. public function index()
  10. {
  11. $where = array('fields' => 'userid=? and is_agent=?', 'values' => array($_SESSION['login_userid'], 0));
  12. $lists = $this->model()->select()->from('payments')->where($where)->orderby('id desc')->fetchAll();
  13. $data = array('title' => '结算记录', 'lists' => $lists);
  14. $this->put('payments.php', $data);
  15. }
  16. }