fix:购物车下单

This commit is contained in:
momo 2023-09-20 15:08:26 +08:00
parent 572dfe1b96
commit 6fd87890d0

View File

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