payments.php 552 B

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