Commit cee6ad4e authored by Steven杜宇's avatar Steven杜宇

// AI

parent 9d72dc4a
......@@ -27,14 +27,15 @@ class YHAIChatConfiguration {
func handleReceiveMessage(_ res: YHAIChatMessage?, _ done: Bool, _ messages: inout [YHAIChatMessage]) {
// 去除loading消息
removeThinkingMessageFromChatList(&messages)
if disableHandleMessage {
for msg in messages {
msg.isDone = true
}
return
}
// 去除loading消息
removeThinkingMessageFromChatList(&messages)
if let res = res {
var find = false
......@@ -57,11 +58,11 @@ class YHAIChatConfiguration {
if !find {
messages.append(res)
}
if done { // 思考完成
for msg in messages {
msg.isDone = true
}
}
if done { // 思考完成
for msg in messages {
msg.isDone = true
}
}
}
......
......@@ -166,12 +166,12 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
} else if model.redirectMode == 3 { // agent
self.manager.getSubRobotChatConversationId(robotId: model.botId) {
self.manager.getSubRobotChatConversationId(robotId: model.redirectPath) {
sesseionId in
let vc = YHAIRobotChatViewController()
vc.isNeedShowBannerHeader = model.isNeedShowBannerHeader()
vc.myTitle = model.title
vc.robotId = model.botId
vc.robotId = model.redirectPath
vc.conversationId = sesseionId
vc.robotType = model.botType
self.navigationController?.pushViewController(vc, animated: true)
......
......@@ -34,7 +34,6 @@ class YHEntranceconfigModel: SmartCodable {
var description: String = ""
var btnText: String = ""
var redirectMode: Int = 0
var botId: String = ""
var botType: Int = 0 // 1:房产 2:教育 3:销售
var redirectPath: String = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment