old_flsystem/PCRobot/Utils/WechatExtend.cs

25 lines
595 B
C#
Raw Normal View History

2022-09-20 03:10:29 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PCRobot.Utils
{
public static class WechatExtend
{
/// <summary>
/// 是否为群账号
/// </summary>
/// <param name="roomwxid"></param>
/// <returns></returns>
public static bool IsQun(this string roomwxid)
{
roomwxid = roomwxid.Trim().ToLower();
return (roomwxid.EndsWith("@chatroom") || roomwxid.EndsWith("@im.chatroom") || roomwxid.StartsWith("r:"));
}
}
}