64ee3cbd by 冯轩

MOD:auto/v1

1 parent 5ccd03be
......@@ -1632,6 +1632,18 @@ class AutoSettlementView(GenericView):
is_fsm = args.get('is_fsm')
# 角色权限不符,返回空列表
token = request.META.get("HTTP_AUTHORIZATION")
user_role = rh.get_token(token[-11:])
self.running_log.info('[api doc] [user_role={0}] '.format(user_role))
if user_role == -1 or (user_role == 1 and business_type == 'HIL') or (user_role == 2 and business_type == 'AFC'):
pagination = {'current': page, 'total': 0, 'page_size': page_size}
res = {
'pagination': pagination,
'doc_list': []
}
return response.ok(data=res)
if isinstance(auto_result, int):
auto_result = consts.RESULT_MAP.get(auto_result)
if isinstance(whole_result, int):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!