소스 검색

Merge branch 'develop' of http://code.dashoo.cn/chengjian/opms_backend into feature/product_management

wangxingcheng 3 년 전
부모
커밋
da7d152881
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      opms_admin/main.go
  2. 0 1
      opms_libary/micro_srv/micro_srv.go

+ 1 - 0
opms_admin/main.go

@@ -34,6 +34,7 @@ func main() {
 // AuthExcludePaths 设定不需要认证的路径
 var AuthExcludePaths = []string{
 	"/Auth/Login",
+	"/Auth/ValidToken",
 	"/Role/GetRoleList",
 	"/Common/GetCaptchaImg",
 	"/Model/*",

+ 0 - 1
opms_libary/micro_srv/micro_srv.go

@@ -199,7 +199,6 @@ func HandleAuth(ctx context.Context, req *protocol.Message, token string, authEx
 	path := "/" + req.ServicePath + "/" + req.ServiceMethod
 	//g.Log().Info("reqPath: ", path)
 	//g.Log().Info("token: ", token)
-	req.Metadata["authExclude"] = "true"
 
 	if authPath(path, authExcludePaths) {
 		req.Metadata["authExclude"] = "false"