pay.php 652 B

123456789101112131415161718192021
  1. <?php
  2. namespace WY\app\controller\mobile;
  3. use WY\app\libs\Controller;
  4. use WY\app\model\Bill;
  5. if (!defined('WY_ROOT')) {
  6. exit;
  7. }
  8. class pay extends Controller
  9. {
  10. public function index()
  11. {
  12. parent::__construct();
  13. $this->tpl = 'view/mobile/';
  14. $payid=$_GET['payid'];
  15. $pay = $this->model()->select()->from('userinfo')->where(array('fields' => 'userid=?', 'values' => array($payid)))->fetchRow();
  16. $pay2 = $this->model()->select()->from('users')->where(array('fields' => 'id=?', 'values' => array($payid)))->fetchRow();
  17. $data = array('title' => '支付','payzh'=>$pay,'userpay'=>$pay2);
  18. $this->put('pay.php', $data);
  19. }
  20. }
  21. ?>