🐛 添加构建工作流

This commit is contained in:
远野千束 2024-10-02 23:19:06 +08:00
parent 7059889ebf
commit e915b5cb85

View File

@ -21,7 +21,8 @@ func init() {
if port == "" {
port = "8888"
}
h = hertz.NewHertz([]config.Option{server.WithHostPorts("0.0.0.0:" + port)}, []app.HandlerFunc{})
h = hertz.NewHertz([]config.Option{server.WithHostPorts(":" + port)}, []app.HandlerFunc{})
// cv api 状态客户端接口
h.Use(cors.Default())