This commit is contained in:
life
2014-11-12 17:32:03 +08:00
parent d979a0c3e2
commit 1f45666ec4
119 changed files with 2463 additions and 675 deletions

View File

@ -20,6 +20,7 @@ import (
"strconv"
"time"
"encoding/json"
"net/url"
)
func init() {
@ -78,6 +79,10 @@ func init() {
}
return str
}
revel.TemplateFuncs["decodeUrlValue"] = func(i string) string {
v, _ := url.ParseQuery("a=" + i)
return v.Get("a")
}
revel.TemplateFuncs["json"] = func(i interface{}) string {
b, _ := json.Marshal(i)
return string(b)
@ -318,4 +323,4 @@ func init() {
member.InitService()
service.ConfigS.InitGlobalConfigs()
})
}
}