! remove all non order code.

This commit is contained in:
gazebo
2018-09-07 16:57:04 +08:00
parent eeed813c46
commit 8add72eb34
18 changed files with 0 additions and 842 deletions

View File

@@ -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