实现分享开关

This commit is contained in:
Minho
2018-03-13 19:20:50 +08:00
parent c278b72f15
commit 08e86e0f41
15 changed files with 162 additions and 134 deletions

View File

@@ -168,11 +168,11 @@ func RegisterFunction() {
return cdn + p
})
beego.AddFuncMap("cdnjs",utils.URLForWithCdnJs)
beego.AddFuncMap("cdncss",utils.URLForWithCdnCss)
beego.AddFuncMap("cdnimg", utils.URLForWithCdnImage)
beego.AddFuncMap("cdnjs",conf.URLForWithCdnJs)
beego.AddFuncMap("cdncss",conf.URLForWithCdnCss)
beego.AddFuncMap("cdnimg", conf.URLForWithCdnImage)
//重写url生成支持配置域名以及域名前缀
beego.AddFuncMap("urlfor", utils.URLFor)
beego.AddFuncMap("urlfor", conf.URLFor)
}
//解析命令