diff --git a/handler/sys_message.go b/handler/sys_message.go index 212e9c8d..df1220e1 100644 --- a/handler/sys_message.go +++ b/handler/sys_message.go @@ -13,7 +13,7 @@ import ( func handleNewUserJoin(m model.Message) { // 判断是否开启迎新 var count int64 - client.MySQL.Model(&entity.Friend{}).Where("enable_welcome IS TRUE").Where("wxid = ?", m.FromUser).Count(&count) + _ = client.MySQL.Model(&entity.Friend{}).Where("enable_welcome IS TRUE").Where("wxid = ?", m.FromUser).Count(&count).Error if count < 1 { return }