From fddaa70cd6df8597b1be60a44284ca1439ba3a22 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期四, 09 十一月 2023 17:38:06 +0800 Subject: [PATCH] 销售明细状态更新修改3 --- 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