From a97b7633201eb4ed7b2485f273760005b5982a5b Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Mon, 27 Mar 2023 10:34:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=BB=84=E6=89=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- txop/msg/msg.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/txop/msg/msg.go b/txop/msg/msg.go index dcfe4e5..a3801c0 100644 --- a/txop/msg/msg.go +++ b/txop/msg/msg.go @@ -6,11 +6,13 @@ import ( "git.hilo.cn/hilo-common/internal/model/msg_m" "git.hilo.cn/hilo-common/internal/model/user_m" "git.hilo.cn/hilo-common/resource/mysql" + "git.hilo.cn/hilo-common/utils" ) // 发送小助手消息 func SendLittleAssistantMsg(model *domain.Model, userId mysql.ID, t msg_e.MsgUserRecordType, diamondIncome mysql.Str, dayNum mysql.Str, propertyUrl mysql.Str, beanNum mysql.Str, groupCode mysql.Str, users ...*user_m.User) (err error) { + defer utils.CheckGoPanic() var user *user_m.User if len(users) > 0 { user = users[0] -- 2.22.0