We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Request 的 subDomain() 函数中,采用了 stristr 去掉 rootDomain 的部分。stristr 是查找子串第一次出现,并返回字符串的剩余部分。
Request
subDomain()
stristr
所以如果域名是 tp.com.local.tp.com 。那么 subDomain() 将返回空字符,而不是期望的 tp.com.local 。
tp.com.local.tp.com
tp.com.local