|
|
|
@ -374,10 +374,10 @@ func GetMessagesV2(c *gin.Context) {
|
|
|
|
|
messages := models.FindMessageByVisitorId(visitorId)
|
|
|
|
|
//result := make([]map[string]interface{}, 0)
|
|
|
|
|
chatMessages := make([]ChatMessage, 0)
|
|
|
|
|
for _, message := range messages {
|
|
|
|
|
//item := make(map[string]interface{})
|
|
|
|
|
var visitor models.Visitor
|
|
|
|
|
var kefu models.User
|
|
|
|
|
for _, message := range messages {
|
|
|
|
|
//item := make(map[string]interface{})
|
|
|
|
|
if visitor.Name == "" || kefu.Name == "" {
|
|
|
|
|
kefu = models.FindUser(message.KefuId)
|
|
|
|
|
visitor = models.FindVisitorByVistorId(message.VisitorId)
|
|
|
|
|