- replace literal 'admin' with const

This commit is contained in:
gazebo
2019-03-12 15:53:13 +08:00
parent c46f1597f1
commit 3113e9d603
8 changed files with 14 additions and 9 deletions

View File

@@ -39,7 +39,7 @@ var (
)
func init() {
AdminCtx = NewWithUserName(nil, "jxadmin", nil, nil)
AdminCtx = NewWithUserName(nil, model.AdminName, nil, nil)
}
func NewWithUserName(rootTask tasksch.ITask, userName string, w http.ResponseWriter, r *http.Request) (ctx *Context) {