where('open_id', '=', $value) ->where('appid', '=', $this->validation->appid) ->first(); if ($userW) { if($userW->user){ $this->validationSet('user',$userW->user); // $this->validation->user = $userW->user; return true; } } return false; } }