提交 38282242 编写于 作者: E eoLinker API Management

修改文件

上级 addb3fe2
package dao package dao
import ( import (
"fmt"
"goku-ce-1.0/dao/cache" "goku-ce-1.0/dao/cache"
"github.com/farseer810/yawf" "github.com/farseer810/yawf"
"github.com/garyburd/redigo/redis" "github.com/garyburd/redigo/redis"
......
...@@ -3,7 +3,6 @@ package middleware ...@@ -3,7 +3,6 @@ package middleware
import ( import (
"goku-ce-1.0/dao" "goku-ce-1.0/dao"
"net/http" "net/http"
"time"
"fmt" "fmt"
"strings" "strings"
"github.com/farseer810/yawf" "github.com/farseer810/yawf"
...@@ -56,6 +55,7 @@ func InjectRequestMapping(httpRequest *http.Request, context yawf.Context, ...@@ -56,6 +55,7 @@ func InjectRequestMapping(httpRequest *http.Request, context yawf.Context,
return false, "error gatewayAlias" return false, "error gatewayAlias"
} }
fmt.Println(gatewayHashkey) fmt.Println(gatewayHashkey)
paths := dao.GetAllAPIPaths(context, gatewayHashkey)
fmt.Println(paths) fmt.Println(paths)
var matchedURI string var matchedURI string
gatewayLen := len(requestInfo[1]) + len(requestInfo[2]) + 2 gatewayLen := len(requestInfo[1]) + len(requestInfo[2]) + 2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册