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