From fb1aeb80f0fbb8435e095a8c9471c6231b93dc24 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 17 十月 2023 20:21:06 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/crm --- middleware/user.go | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/middleware/user.go b/middleware/user.go index c6df3f9..f1e4487 100644 --- a/middleware/user.go +++ b/middleware/user.go @@ -32,7 +32,18 @@ } } +var whiteList = map[string]struct{}{ //鐧藉悕鍗曞湴鍧�鍒楄〃 + "/api/code/getCodeList": {}, + "/api/data/getAllData": {}, + "/api/serviceCollectionPlan/add": {}, + "/api/bankAccount/list": {}, + "/api/paymentType/list": {}, +} + func CheckAuth(apiPath string, token string) bool { + if _, ok := whiteList[apiPath]; ok { + return true + } cli := user.NewUserServiceClient(userConn) ctx, cancel := context.WithTimeout(context.Background(), time.Second) defer cancel() -- Gitblit v1.8.0