feat: cdview优化校验
This commit is contained in:
parent
67b92f0dd4
commit
aa80c1b00a
|
@ -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]
|
m = method.split("(")[0]
|
||||||
args = method.split("(")[1].split(")")[0].split(",")
|
args = method.split("(")[1].split(")")[0].split(",")
|
||||||
module, func = m.rsplit(".", 1)
|
module, func = m.rsplit(".", 1)
|
||||||
|
|
Loading…
Reference in New Issue