no message

This commit is contained in:
kuaifan
2024-12-10 20:38:25 +08:00
parent 07663dea6c
commit f29bf3640a
8 changed files with 140 additions and 50 deletions

View File

@@ -55,6 +55,16 @@ class UserBot extends AbstractModel
return str_ends_with($email, '@bot.system') && self::systemBotName($email);
}
/**
* 判断是否系统AI机器人
* @param $email
* @return bool
*/
public static function isAiBot($email)
{
return str_starts_with($email, 'ai-') && self::isSystemBot($email);
}
/**
* 系统机器人名称
* @param $name string 邮箱 或 邮箱前缀