fix:购物车下单
This commit is contained in:
parent
572dfe1b96
commit
6fd87890d0
@ -13,7 +13,6 @@ import (
|
|||||||
"fusenapi/server/order/internal/handler"
|
"fusenapi/server/order/internal/handler"
|
||||||
"fusenapi/server/order/internal/svc"
|
"fusenapi/server/order/internal/svc"
|
||||||
|
|
||||||
"github.com/zeromicro/go-zero/core/conf"
|
|
||||||
"github.com/zeromicro/go-zero/rest"
|
"github.com/zeromicro/go-zero/rest"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -22,9 +21,8 @@ var configFile = flag.String("f", "etc/order.yaml", "the config file")
|
|||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
cfgContent := fsconfig.StartNacosConfig(*configFile, nil)
|
|
||||||
var c config.Config
|
var c config.Config
|
||||||
conf.LoadConfigFromYamlBytes([]byte(cfgContent), &c)
|
fsconfig.StartNacosConfig(*configFile, &c, nil)
|
||||||
|
|
||||||
c.Timeout = int64(time.Second * 15)
|
c.Timeout = int64(time.Second * 15)
|
||||||
server := rest.MustNewServer(c.RestConf, rest.WithCustomCors(auth.FsCors, func(w http.ResponseWriter) {
|
server := rest.MustNewServer(c.RestConf, rest.WithCustomCors(auth.FsCors, func(w http.ResponseWriter) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user