|
@@ -152,11 +152,11 @@ def decode_topic(param: DecodeContentParam) -> Dict[str, Any]:
|
|
|
"""选题解构方法"""
|
|
"""选题解构方法"""
|
|
|
try:
|
|
try:
|
|
|
# 前置配额检查,用于超出每天解构次数时,直接返回错误
|
|
# 前置配额检查,用于超出每天解构次数时,直接返回错误
|
|
|
- if not _check_quota(param.scene, CapabilityEnum.DECODE, param.content_type):
|
|
|
|
|
- return _build_error_response(
|
|
|
|
|
- ERROR_CODE_FAILED,
|
|
|
|
|
- "配额不足"
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ # if not _check_quota(param.scene, CapabilityEnum.DECODE, param.content_type):
|
|
|
|
|
+ # return _build_error_response(
|
|
|
|
|
+ # ERROR_CODE_FAILED,
|
|
|
|
|
+ # "配额不足"
|
|
|
|
|
+ # )
|
|
|
|
|
|
|
|
# 步骤1: 创建工作流task任务
|
|
# 步骤1: 创建工作流task任务
|
|
|
task = _create_workflow_task(param.scene, param.content_type)
|
|
task = _create_workflow_task(param.scene, param.content_type)
|