feat: cdview优化校验

This commit is contained in:
caoqianming 2025-09-15 09:40:39 +08:00
parent 67b92f0dd4
commit aa80c1b00a
1 changed files with 3 additions and 1 deletions

View File

@ -180,7 +180,9 @@ class CdView(MyLoggingMixin, APIView):
执行采集数据方法
"""
method = request.data.get("method")
method = request.data.get("method", None)
if not method:
raise ParseError("请传入method参数")
m = method.split("(")[0]
args = method.split("(")[1].split(")")[0].split(",")
module, func = m.rsplit(".", 1)