$res=$user->where("login_id='{$username}' OR phone='{$username}'")->find();$phone=I('param.phone'); $sql='select phone,login_id from pro_cuser where phone="'.$data['phone'].'" or login_id="'.$data['phone'].'" and status="1" limit 1';