From 70a71972857de4a2b0944bde6937b543e83a75ff Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Tue, 9 Feb 2021 18:33:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E7=AC=A6=E9=9B=86=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/messages.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/messages.go b/models/messages.go index cb467bd..bb4b0cd 100644 --- a/models/messages.go +++ b/models/messages.go @@ -23,6 +23,7 @@ type MessageKefu struct { } func CreateMessage(kefu_id string, visitor_id string, content string, mes_type string) { + DB.Exec("set names utf8mb4") v := &Message{ KefuId: kefu_id, VisitorId: visitor_id,