! remove all non order code.
This commit is contained in:
9
main.go
9
main.go
@@ -3,11 +3,9 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/jxcallback/orderman"
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"git.rosy.net.cn/jx-callback/globals/beegodb"
|
||||
@@ -86,13 +84,6 @@ func main() {
|
||||
}
|
||||
orderman.LoadPendingOrders()
|
||||
}
|
||||
if beego.AppConfig.DefaultBool("enableStore", false) {
|
||||
cms.Init()
|
||||
mux := http.NewServeMux()
|
||||
curAdmin := cms.GetAdmin()
|
||||
curAdmin.MountTo("/admin", mux)
|
||||
beego.Handler("/admin/*", mux)
|
||||
}
|
||||
|
||||
if beego.BConfig.RunMode != "prod" {
|
||||
beego.BConfig.WebConfig.DirectoryIndex = true
|
||||
|
||||
Reference in New Issue
Block a user