colly_wyx
2017-08-10 f7a98b088d5f7246cf12ee072169057a8e762664
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'));
    }
 
}