🎨 逻辑优化

This commit is contained in:
李寻欢
2024-07-15 15:07:53 +08:00
parent fcc61fdcd9
commit d89b8033bd
3 changed files with 3 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ import (
func WelcomeNew(m *plugin.MessageContext) {
// 判断是否开启迎新
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("is_ok IS TRUE").Where("is_ok IS TRUE").Where("wxid = ?", m.FromUser).Count(&count)
if count < 1 {
return
}