fix:修复管理员或作者读取文章时弹出密码页的问题

This commit is contained in:
lifei6671
2018-08-31 10:40:11 +08:00
parent fa1cb9ae33
commit 8243a89e23
3 changed files with 5 additions and 5 deletions

View File

@@ -377,7 +377,7 @@ func RegisterCache() {
bc, err := json.Marshal(&memcacheConfig)
if err != nil {
beego.Error("初始化 Redis 缓存失败 ->", err)
beego.Error("初始化 Memcache 缓存失败 ->", err)
os.Exit(1)
}
memcache, err := beegoCache.NewCache("memcache", string(bc))
@@ -439,7 +439,7 @@ func init() {
if configPath, err := filepath.Abs(conf.ConfigurationFile); err == nil {
conf.ConfigurationFile = configPath
}
gocaptcha.ReadFonts("./static/fonts", ".ttf")
gocaptcha.ReadFonts(conf.WorkingDir("static","fonts"), ".ttf")
gob.Register(models.Member{})
if p, err := filepath.Abs(os.Args[0]); err == nil {