url判断优化

feat/task1-c-wallet
gongfuxiang 2022-04-21 19:07:54 +08:00
parent aa100a5b9e
commit 12be56b450
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ function GetHttpCode($url, $timeout = 5)
*/
function IsUrl($value)
{
return in_array(substr($value, 0, 6), ['http:/', 'https:']);
return empty($value) ? false : in_array(substr($value, 0, 6), ['http:/', 'https:']);
}
/**