Sfoglia il codice sorgente

feat: 取消解构限额

jihuaqiang 3 settimane fa
parent
commit
1a55508e7a
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      tasks/decode.py

+ 5 - 5
tasks/decode.py

@@ -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)