Skip to content

Commit e8435c7

Browse files
author
cg33
committed
A quick fix of gf adapter
1 parent ffc1343 commit e8435c7

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GOCMD=go
22
GOBUILD=$(GOCMD) build
33
BINARY_NAME=adm
4-
LASTVERSION=v1.0.8
5-
VERSION=v1.0.9
4+
LASTVERSION=v1.0.9
5+
VERSION=v1.0.10
66
CLI=adm
77

88
TEST_CONFIG_PATH=./../common/config.json

adapter/gf/gf.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,12 @@ func (gf *Gf) AddHandler(method, path string, plug plugins.Plugin) {
6767
ctx := context.NewContext(c.Request)
6868

6969
params := reg1.FindAllString(pluginReqUrl, -1)
70+
pluginReqUrl = reg1.ReplaceAllString(pluginReqUrl, "")
7071
params = append(params, reg2.FindAllString(pluginReqUrl, -1)...)
7172

7273
for _, param := range params {
7374
p := strings.Replace(param, ":", "", -1)
75+
p = strings.Replace(p, "/", "", -1)
7476
if c.Request.URL.RawQuery == "" {
7577
c.Request.URL.RawQuery += p + "=" + c.GetRequestString(p)
7678
} else {

modules/system/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package system
22

33
// Version is the version of framework.
4-
const Version = "v1.0.9"
4+
const Version = "v1.0.10"

0 commit comments

Comments
 (0)