root 2 weeks ago
parent
commit
e74aaf5b23
1 changed files with 3 additions and 1 deletions
  1. 3 1
      ai-slibra-assistant/util/request_utils.py

+ 3 - 1
ai-slibra-assistant/util/request_utils.py

@@ -244,7 +244,9 @@ def business_service(session_id, uid, code, tools,  asr):
             except Exception as e:
                 logger.info(f"business service服务异常:session:{session_id}, tools:{newtools},uid:{uid}:{e}")
         newtools = "water_loc_info" if tools == "water_info" else "meter_owner_neighbour"
-        buildtools(code, uid, session_id, asr, newtools)
+        res = buildtools(code, uid, session_id, asr, newtools)
+        if res[0]['title']== "YES":
+            return res
     buildtools(code,uid, session_id, asr, tools)