修复openapi模块

This commit is contained in:
ZJY 2021-09-02 11:12:11 +08:00
parent a4b90cd744
commit 700f7d39a1

View File

@ -389,9 +389,10 @@ func (c *Container) request(ss ...string) ([]byte, error) {
method = s
} else if strings.Contains(s, "/api/") {
if c.Version == "2.9" {
strings.ReplaceAll(s, "api", "open")
api = strings.ReplaceAll(s, "api", "open")
} else {
api = s
}
api = s
} else {
body = s
}