Commit 2c70ab26 authored by ZZH's avatar ZZH

fix multi lang 2024-05-30

parent 7cf8dc8e
......@@ -26,7 +26,7 @@ from unify_api.modules.alarm_manager.components.list_alarm import (
# @examples(list_alarm_example)
async def post_list_alarm(req, body: PageRequest) -> ListAlarmResponse:
cid = req.json.get("cid")
user_id = None
user_id = jwt_user(req)
page_size = body.page_size
page_num = body.page_num
start, end = '', ''
......@@ -52,7 +52,7 @@ async def post_list_alarm(req, body: PageRequest) -> ListAlarmResponse:
if req.json.get("product") == Product.AndianUManage.value:
proxy_id = req.json.get("proxy_id")
product = req.json.get("product")
user_id = jwt_user(req)
req_cids = req.json.get("cids")
# cids = await get_cids(user_id, product)
......@@ -67,7 +67,6 @@ async def post_list_alarm(req, body: PageRequest) -> ListAlarmResponse:
Product.IntelligentU.value]:
if not cid:
product = req.json.get("product")
user_id = jwt_user(req)
cids = await get_cids(user_id, product)
else:
cids = [cid]
......
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