Compatible with revel 0.18
This commit is contained in:
@ -77,7 +77,7 @@ func (c Blog) e404(themePath string) revel.Result {
|
||||
// life.leanote.com
|
||||
// lealife.com
|
||||
func (c Blog) domain() (ok bool, userBlog info.UserBlog) {
|
||||
host := c.Request.Request.Host // a.cc.com:9000
|
||||
host := c.Request.Host // a.cc.com:9000
|
||||
hostArr := strings.Split(host, ".")
|
||||
if strings.Contains(host, configService.GetDefaultDomain()) {
|
||||
// 有二级域名 a.leanoe.com 3个
|
||||
|
Reference in New Issue
Block a user