Commit 93a9a810 authored by pete谢兆麟's avatar pete谢兆麟

Merge branch 'yinhe-live-1212' of...

Merge branch 'yinhe-live-1212' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into yinhe-live-1212
parents 5818aec0 cee6ad4e
......@@ -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,6 +58,7 @@ class YHAIChatConfiguration {
if !find {
messages.append(res)
}
}
if done { // 思考完成
for msg in messages {
......@@ -64,7 +66,6 @@ class YHAIChatConfiguration {
}
}
}
}
func removeThinkingMessageFromChatList( _ messages: inout [YHAIChatMessage]) {
......
......@@ -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