|
@@ -1923,6 +1923,25 @@ class APIMgr():
|
|
|
response = self.s.post(f"{cfg.target_host}/jyapi/message/closeChatSession", headers=headers, json=json)
|
|
|
return response
|
|
|
|
|
|
+ #根据问题查询答案
|
|
|
+ def findanswer(self):
|
|
|
+ headers = GSTORE['headers']
|
|
|
+ json = {"question":"标书制作",
|
|
|
+ "type":1,
|
|
|
+ "robotEntId":"455b425f"}
|
|
|
+ response = self.s.post(f"{cfg.target_host}/jyapi/knowledge/findAnswer",headers = headers ,json = json)
|
|
|
+ return response
|
|
|
+
|
|
|
+ #用户端-猜你想问
|
|
|
+ def guesstoask(self):
|
|
|
+ headers = GSTORE['headers']
|
|
|
+ json = {"question":"大会员",
|
|
|
+ "type":1,
|
|
|
+ "entId":"455b425f",
|
|
|
+ "reqSource":1
|
|
|
+}
|
|
|
+ response = self.s.post(f"{cfg.target_host}/jyapi/knowledge/guessToAsk",headers = headers ,json = json)
|
|
|
+ return response
|
|
|
|
|
|
|
|
|
apimgr = APIMgr()
|