php自动获取当前地址 协议+域名 $url = ((int)$_SERVER['SERVER_PORT'] == 80 ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] ╰︶﹉⋛⋋⊱⋋๑๑⋌⊰⋌⋚﹉︶╯