colly_wyx
2018-03-30 5b00b28782f2c773aa9b63ac61584b70a366526c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
 
class UserModel extends System_Model_Base{
 
    public $table = "user";
    
    public function getInfoByPhone($phone){
        return $this->get(array('phone' => $phone));
        //return $this->fetchRow('user', array('username' => $username));
    }
 
    public function getUserList(){
        return $this->getList(array('username' => 'colly'));
    }
 
}