예제 #1
0
 public function getById($id)
 {
     if (!is_numeric($id)) {
         return $this->getByLogin($id);
     }
     return parent::getById($id);
 }
예제 #2
0
 public function getById($id)
 {
     if (!is_numeric($id) && strlen($id) > 0) {
         $this->where('keyword', $id);
         return $this->one();
     }
     return parent::getById($id);
 }