Compatible with revel 0.18

This commit is contained in:
lealife committed 2017-11-30 18:10:59 +08:00
1 parent 430744a324
commit c6937fd184
11 files changed
+152 -74

No files matched your search

+1 -1
View File
@@ -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个