/**
* @param $url 网址
* @return bool
*/
public static function checkUrl($url){
$pattern="/^(http|https)://.*$/i";
if(preg_match($pattern,$url)){
return true;
}else{
return false;
}
}