thinkphp5 获取域名

input('server.REQUEST_SCHEME') . '://' . input('server.SERVER_NAME')

原文地址:https://www.cnblogs.com/JANCHAN/p/10154875.html