Commit 64d66d9a authored by ZZH's avatar ZZH

remove qkadmin cid verify 2024-03-6

parent 4aebaae0
......@@ -19,6 +19,7 @@ PRODUCT = {
"Ulock": 9, # 运维开锁工具
"ZhiWeiu": 10, # 智维u
"anShiU": 12, # 安识u
"qkadmin": 13, # 清科管理后台u
}
......
......@@ -42,7 +42,6 @@ async def get_test(request):
def is_need_verify(path):
if SETTING.debug_mode == 1:
return False
if "swagger" in path:
......@@ -173,8 +172,9 @@ async def auth_verify_cid(request):
product = PRODUCT.get(host)
log.info(f"host:{host} product:{product}")
# 智维u, 直接返回
if product == 10:
if product in [10, 13]:
return
cid, cids, cid_list = None, None, None
# 2. 如果参数传了产品类型, 根据参数获取, 后续修改不再根据host取product
args = request.json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment