Merge pull request #5 from 764763903a/test

修复openapi模块
This commit is contained in:
764763903a 2021-09-02 11:14:11 +08:00 committed by GitHub
commit 757a9bff06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}